projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
consumer_avformat.c: make compilation fix on url_fclose version sensitive to support...
[melted]
/
src
/
modules
/
avformat
/
consumer_avformat.c
diff --git
a/src/modules/avformat/consumer_avformat.c
b/src/modules/avformat/consumer_avformat.c
index
580956e
..
8a6cc86
100644
(file)
--- 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 )