Module: libav Branch: master Commit: 5efd91284e56d444139ed811671c59a129bbb92f
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Fri Feb 19 14:18:15 2016 +0100 avprobe: do not call avio_close() on a custom context avio_close() can only be called on AVIOContexts created by avio_open(2). --- 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(); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
