]> git.sesse.net Git - mlt/commitdiff
Update src/modules/avformat/producer_avformat.c
authorBrian Matherly <pez4brian@yahoo.com>
Tue, 21 Aug 2012 02:10:22 +0000 (21:10 -0500)
committerBrian Matherly <pez4brian@yahoo.com>
Tue, 21 Aug 2012 02:10:22 +0000 (21:10 -0500)
Better way to detect the availability of PIX_FMT_YUVA444P.

src/modules/avformat/producer_avformat.c

index c875d57cb73c544623aa91974ca368468ab0656a..933d2884d7d7b5f18573c3cca0b486854682eb69 100644 (file)
@@ -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
                        ) &&