[FFmpeg-cvslog] avprobe: do not call avio_close() on a custom context
Anton Khirnov
git at videolan.org
Mon Feb 29 16:37:16 CET 2016
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Feb 19 14:18:15 2016 +0100| [5efd91284e56d444139ed811671c59a129bbb92f] | committer: Anton Khirnov
avprobe: do not call avio_close() on a custom context
avio_close() can only be called on AVIOContexts created by avio_open(2).
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5efd91284e56d444139ed811671c59a129bbb92f
---
avprobe.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/avprobe.c b/avprobe.c
index 2ab8ce0..63e6c2a 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -1025,7 +1025,8 @@ int main(int argc, char **argv)
ret = probe_file(input_filename);
probe_footer();
avio_flush(probe_out);
- avio_close(probe_out);
+ av_freep(&probe_out);
+ av_freep(&buffer);
avformat_network_deinit();
More information about the ffmpeg-cvslog
mailing list