Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834417 - media-video/transcode-1.1.7-r6 with ffmpeg-5.0: encode_lavc.c:242:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
Summary: media-video/transcode-1.1.7-r6 with ffmpeg-5.0: encode_lavc.c:242:21: error: ...
Status: RESOLVED DUPLICATE of bug 831482
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-28 21:21 UTC by Kobboi
Modified: 2022-07-14 16:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,21.17 KB, application/gzip)
2022-02-28 21:21 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 21:21 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 21:21:29 UTC
encode_lavc.c:242:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  242 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:242:21: note: each undeclared identifier is reported only once for each function it appears in
encode_lavc.c:242:32: error: expected expression before ‘)’ token
  242 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv420p_huffyuv’:
encode_lavc.c:256:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  256 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:256:32: error: expected expression before ‘)’ token
  256 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv422p’:
encode_lavc.c:272:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  272 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:272:32: error: expected expression before ‘)’ token
  272 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv422p_huffyuv’:
encode_lavc.c:284:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  284 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:284:32: error: expected expression before ‘)’ token
  284 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_rgb24’:
encode_lavc.c:294:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  294 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:294:32: error: expected expression before ‘)’ token
  294 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^
encode_lavc.c: In function ‘psnr_write’:
encode_lavc.c:506:38: error: ‘AVCodecContext’ has no member named ‘coded_frame’
  506 | #define PFRAME(PD) ((PD)->ff_vcontext.coded_frame)
      |                                      ^
encode_lavc.c:526:17: note: in expansion of macro ‘PFRAME’
  526 |                 PFRAME(pd)->error[0],
      |                 ^~~~~~
encode_lavc.c:506:38: error: ‘AVCodecContext’ has no member named ‘coded_frame’
  506 | #define PFRAME(PD) ((PD)->ff_vcontext.coded_frame)
      |                                      ^


Reproducible: Always
Comment 1 Kobboi 2022-02-28 21:21:47 UTC
Created attachment 766089 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 21:21:48 UTC
Created attachment 766090 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 21:22:44 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Andreas Sturmlechner gentoo-dev 2022-07-14 16:40:53 UTC
No need to duplicate those.

*** This bug has been marked as a duplicate of bug 831482 ***