From b213d10c28d097a2b78895d715fd1c285e049ae2 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 20 Aug 2012 21:10:22 -0500 Subject: [PATCH] Update src/modules/avformat/producer_avformat.c Better way to detect the availability of PIX_FMT_YUVA444P. --- src/modules/avformat/producer_avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) && -- 2.39.2