]> git.sesse.net Git - mlt/commitdiff
consumer_avformat.c: fix deprecated warning on av_set_string
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 21 Oct 2008 21:03:54 +0000 (21:03 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 21 Oct 2008 21:03:54 +0000 (21:03 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1190 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/consumer_avformat.c

index 0f2f1ddede911bf698c96a96ec9c7e9bffe56c99..f9febd0bed7effa3591ff504aa466f4ab465633e 100644 (file)
@@ -288,7 +288,11 @@ static void apply_properties( void *obj, mlt_properties properties, int flags )
                const char *opt_name = mlt_properties_get_name( properties, i );
                const AVOption *opt = av_find_opt( obj, opt_name, NULL, flags, flags );
                if ( opt != NULL )
+#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(59<<8)+0)                     
+                       av_set_string2( obj, opt_name, mlt_properties_get( properties, opt_name), 0 );
+#else
                        av_set_string( obj, opt_name, mlt_properties_get( properties, opt_name) );
+#endif
        }
 }