aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-02-19 14:18:15 +0100
committerAnton Khirnov <anton@khirnov.net>2016-02-22 11:28:26 +0100
commit5efd91284e56d444139ed811671c59a129bbb92f (patch)
tree561bf4bdf2b12baab84ba12e93c9c2a2483f447c
parentdc6527ed908e4d330738f139074455ffbe56a2de (diff)
downloadffmpeg-5efd91284e56d444139ed811671c59a129bbb92f.tar.gz
avprobe: do not call avio_close() on a custom context
avio_close() can only be called on AVIOContexts created by avio_open(2).
-rw-r--r--avprobe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avprobe.c b/avprobe.c
index 2ab8ce0a61..63e6c2a694 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();