]> git.sesse.net Git - mlt/commitdiff
Migrate to FFmpeg avformat_alloc_context().
authorDan Dennedy <dan@dennedy.org>
Wed, 17 Jun 2009 05:54:45 +0000 (22:54 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 17 Jun 2009 05:54:45 +0000 (22:54 -0700)
Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/modules/avformat/consumer_avformat.c

index de1acb63aecd6131a01b4e74cbf76d08331fa4eb..f436f95460387480a92353a700df1e391da12d09 100644 (file)
@@ -827,7 +827,11 @@ static void *consumer_thread( void *arg )
        int count = 0;
 
        // Allocate the context
+#if (LIBAVFORMAT_VERSION_INT >= ((52<<16)+(26<<8)+0))
+       AVFormatContext *oc = avformat_alloc_context( );
+#else
        AVFormatContext *oc = av_alloc_format_context( );
+#endif
 
        // Streams
        AVStream *audio_st = NULL;