From 1135a0714613b91642fc1c2c4b0d807250a55f5c Mon Sep 17 00:00:00 2001 From: Janne Grunau <janne-libav@jannau.net> Date: Sun, 1 Jan 2012 17:56:28 +0100 Subject: [PATCH] avconv: free bitstream filters --- avconv.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/avconv.c b/avconv.c index f3e6e288baa..3fa164ff434 100644 --- a/avconv.c +++ b/avconv.c @@ -667,6 +667,15 @@ void exit_program(int ret) avformat_free_context(s); av_dict_free(&output_files[i].opts); } + for (i = 0; i < nb_output_streams; i++) { + AVBitStreamFilterContext *bsfc = output_streams[i].bitstream_filters; + while (bsfc) { + AVBitStreamFilterContext *next = bsfc->next; + av_bitstream_filter_close(bsfc); + bsfc = next; + } + output_streams[i].bitstream_filters = NULL; + } for (i = 0; i < nb_input_files; i++) { avformat_close_input(&input_files[i].ctx); } -- GitLab