]> git.sesse.net Git - mlt/commitdiff
Increase libavutil version required to use PIX_FMT_YUVA444P.
authorBrian Matherly <pez4brian@yahoo.com>
Tue, 14 Aug 2012 04:10:55 +0000 (23:10 -0500)
committerBrian Matherly <pez4brian@yahoo.com>
Tue, 14 Aug 2012 04:10:55 +0000 (23:10 -0500)
PIX_FMT_YUVA444P was added to ffmpeg in version 51.35.101 - and so the precompiler check was correctly set to that version. However, it has not yet been added to libav. And libav recently increased the libavutil version to 51.38.0. This causes a compilation error against libav master because the precompiler check passes, but PIX_FMT_YUVA444P is not defined.

The current libavutil versions are:
 * ffmpeg master: 51.69.100
 * ffmpeg 0.11:   51.54.100
 * libav  master: 51.38.0

This commit sets the precompiler to check against version 51.54.0. This will allow PIX_FMT_YUVA444P to be used when compiled against both ffmpeg master and ffmpeg 0.11 - while avoiding errors when compiling against libav master. However, if libav keeps incrementing the version without adding PIX_FMT_YUVA444P, this number may have to be increased again in the future.

src/modules/avformat/producer_avformat.c

index 85cf346a4e91fa4444ccb09fa5d12f3dda723aab..97c6eb305ecfb1fc437d97c989c4da48071da35e 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)+(35<<8)+101)
+#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(54<<8)+0)
                        || pix_fmt == PIX_FMT_YUVA444P
 #endif
                        ) &&