Re: [Mlt-devel] fix building with old ffmpeg
Brought to you by:
ddennedy,
lilo_booter
From: Dan D. <da...@de...> - 2009-04-09 07:09:00
|
On Wed, Apr 8, 2009 at 10:27 AM, Alberto Villa <vil...@gm...> wrote: > hi dan! > please, accept this patch which avoids build failure against old ffmpeg > > #if LIBAVUTIL_VERSION_INT < (50<<16) > -#define PIX_FMT_YUYV422 PIX_FMT_YUV422 > +#define PIX_FMT_YUV422 PIX_FMT_YUYV422 > #endif I do not think that is correct. It was YUV422 that only existed previously and was replaced by YUYV422. The below should be correct and what I will commit, but revert your change before trying it. Index: producer_avformat.c =================================================================== --- producer_avformat.c (revision 1383) +++ producer_avformat.c (working copy) @@ -634,8 +634,8 @@ else { AVPicture output; - avpicture_fill( &output, buffer, PIX_FMT_YUV422, width, height ); - img_convert( &output, PIX_FMT_YUV422, (AVPicture *)frame, pix_fmt, width, height ); + avpicture_fill( &output, buffer, PIX_FMT_YUYV422, width, height ); + img_convert( &output, PIX_FMT_YUYV422, (AVPicture *)frame, pix_fmt, width, height ); } #endif } -- +-DRD-+ |