diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-02-19 14:18:15 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-02-22 11:28:26 +0100 |
commit | 5efd91284e56d444139ed811671c59a129bbb92f (patch) | |
tree | 561bf4bdf2b12baab84ba12e93c9c2a2483f447c | |
parent | dc6527ed908e4d330738f139074455ffbe56a2de (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |