From: Brian Matherly Date: Tue, 21 Aug 2012 02:10:22 +0000 (-0500) Subject: Update src/modules/avformat/producer_avformat.c X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b213d10c28d097a2b78895d715fd1c285e049ae2;p=mlt Update src/modules/avformat/producer_avformat.c Better way to detect the availability of PIX_FMT_YUVA444P. --- diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index c875d57c..933d2884 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -1248,7 +1248,7 @@ static void convert_image( AVFrame *frame, uint8_t *buffer, int pix_fmt, // extract alpha from planar formats if ( ( pix_fmt == PIX_FMT_YUVA420P -#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(54<<8)+0) +#if defined(FFUDIV) && LIBAVUTIL_VERSION_INT >= ((51<<16)+(35<<8)+101) || pix_fmt == PIX_FMT_YUVA444P #endif ) &&