consumer_avformat.c: make compilation fix on url_fclose version sensitive to support...
[melted] / src / modules / avformat / consumer_avformat.c
index 580956e..8a6cc86 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 )