From 355c8f543ea2652e77230bcae56de00c0c39ec1d Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 21 Oct 2008 21:03:54 +0000 Subject: [PATCH] consumer_avformat.c: fix deprecated warning on av_set_string git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1190 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/avformat/consumer_avformat.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index 0f2f1dd..f9febd0 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -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 } } -- 1.7.4.4