]> git.sesse.net Git - mlt/commitdiff
fix AVOption processing on libav 0.7.3
authorDan Dennedy <dan@dennedy.org>
Mon, 30 Jan 2012 18:28:35 +0000 (10:28 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 30 Jan 2012 18:28:35 +0000 (10:28 -0800)
Patch for consumer by j-b-m and extended to producer by me.

src/modules/avformat/consumer_avformat.c
src/modules/avformat/producer_avformat.c

index 1963c279c9bd190ea87630ebbd997df7e06ad649..df1cc0f2301a64773e9419c4a17e46156f5828a9 100644 (file)
@@ -394,7 +394,7 @@ static void apply_properties( void *obj, mlt_properties properties, int flags )
        for ( i = 0; i < count; i++ )
        {
                const char *opt_name = mlt_properties_get_name( properties, i );
-#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(7<<8)+0)
+#if LIBAVUTIL_VERSION_INT > ((51<<16)+(7<<8)+0)
                const AVOption *opt = av_opt_find( obj, opt_name, NULL, flags, flags );
 #else
                const AVOption *opt = av_find_opt( obj, opt_name, NULL, flags, flags );
@@ -404,7 +404,7 @@ static void apply_properties( void *obj, mlt_properties properties, int flags )
                if ( !opt && (
                        ( opt_name[0] == 'v' && ( flags & AV_OPT_FLAG_VIDEO_PARAM ) ) ||
                        ( opt_name[0] == 'a' && ( flags & AV_OPT_FLAG_AUDIO_PARAM ) ) ) )
-#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(7<<8)+0)
+#if LIBAVUTIL_VERSION_INT > ((51<<16)+(7<<8)+0)
                        opt = av_opt_find( obj, ++opt_name, NULL, flags, flags );
 #else
                        opt = av_find_opt( obj, ++opt_name, NULL, flags, flags );
index 0102b19bd4a06fe4a60a13d67642632ce50946b4..2492315e7f2359fce07c633bda2c41b9f1b1b579 100644 (file)
@@ -1799,7 +1799,7 @@ static void apply_properties( void *obj, mlt_properties properties, int flags )
        for ( i = 0; i < count; i++ )
        {
                const char *opt_name = mlt_properties_get_name( properties, i );
-#if LIBAVUTIL_VERSION_INT >= ((51<<16)+(7<<8)+0)
+#if LIBAVUTIL_VERSION_INT > ((51<<16)+(7<<8)+0)
                const AVOption *opt = av_opt_find( obj, opt_name, NULL, flags, flags );
 #else
                const AVOption *opt = av_find_opt( obj, opt_name, NULL, flags, flags );