From: ddennedy Date: Wed, 12 Dec 2007 06:47:09 +0000 (+0000) Subject: consumer_avformat.c: make compilation fix on url_fclose version sensitive to support... X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=03e835ba7dffe641feecd19ba99963825207cb1f;p=melted consumer_avformat.c: make compilation fix on url_fclose version sensitive to support older ffmpeg git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1044 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index 580956e..8a6cc86 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -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 )