]> git.sesse.net Git - mlt/commitdiff
fix build against libav master
authorDan Dennedy <dan@dennedy.org>
Sun, 23 Sep 2012 23:39:25 +0000 (16:39 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 23 Sep 2012 23:39:25 +0000 (16:39 -0700)
src/modules/avformat/consumer_avformat.c

index 640e2b00bd63b21132a5fb01c9f3d534f3eb0ec3..da7f7af506af6b701754deaf5f38e71c6bd80457 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 >= ((54<<16)+(56<<8)+100)
+#if (defined(FFUDIV) && LIBAVCODEC_VERSION_INT >= ((54<<16)+(56<<8)+100)) || (LIBAVCODEC_VERSION_INT >= ((54<<16)+(27<<8)+0))
                        if ( codec->encode2 && codec->type == CODEC_TYPE_AUDIO )
 #elif LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
                        if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO )
@@ -263,7 +263,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 >= ((54<<16)+(56<<8)+100)
+#if (defined(FFUDIV) && LIBAVCODEC_VERSION_INT >= ((54<<16)+(56<<8)+100)) || (LIBAVCODEC_VERSION_INT >= ((54<<16)+(27<<8)+0))
                        if ( codec->encode2 && codec->type == CODEC_TYPE_VIDEO )
 #elif LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0)
                        if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO )