]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/consumer_avformat.c
Fix incorrect precompiler conditionals for libav/ffmpeg versions.
[mlt] / src / modules / avformat / consumer_avformat.c
index 0b0322ead2550044e3d9117136740b0b01351829..424ad9f5b244b698ec6803fb86bd7c9dbfab2d97 100644 (file)
@@ -237,7 +237,7 @@ static int consumer_start( mlt_consumer consumer )
                mlt_properties_set_data( properties, "acodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
                mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, NULL );
                while ( ( codec = av_codec_next( codec ) ) )
-#if LIBAVCODEC_VERSION_INT >= ((53<<16)+(34<<8)+0)
+#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
                        if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
 #else
                        if ( codec->encode && codec->type == CODEC_TYPE_AUDIO )
@@ -261,7 +261,7 @@ static int consumer_start( mlt_consumer consumer )
                mlt_properties_set_data( properties, "vcodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL );
                mlt_properties_set_data( doc, "video_codecs", codecs, 0, NULL, NULL );
                while ( ( codec = av_codec_next( codec ) ) )
-#if LIBAVCODEC_VERSION_INT >= ((53<<16)+(34<<8)+0)
+#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
                        if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO )
 #else
                        if ( codec->encode && codec->type == CODEC_TYPE_VIDEO )