]> git.sesse.net Git - mlt/commitdiff
consumer_avformat.c: make compilation fix on url_fclose version sensitive to support...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 12 Dec 2007 06:47:09 +0000 (06:47 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 12 Dec 2007 06:47:09 +0000 (06:47 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1044 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/consumer_avformat.c

index 580956e2cf39206301d42f089b3747a15b77dd55..8a6cc8664929af90f838f730e306b50a775f0e6a 100644 (file)
@@ -1150,7 +1150,11 @@ static void *consumer_thread( void *arg )
 
        // Close the output file
        if (!(fmt->flags & AVFMT_NOFILE))
+#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(0<<8)+0)
                url_fclose(oc->pb);
+#else
+               url_fclose(&oc->pb);
+#endif
 
        // Clean up input and output frames
        if ( output )