summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-01 17:56:28 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-01-01 21:48:50 +0100
commit1135a0714613b91642fc1c2c4b0d807250a55f5c (patch)
tree7f772a84eb368ecfa542b1eefd0710f0f2d643ea /avconv.c
parentb12d21733975f9001eecb480fc28e5e4473b1327 (diff)
avconv: free bitstream filters
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index f3e6e288ba..3fa164ff43 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);
}