diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-01-01 17:56:28 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-01 21:48:50 +0100 |
commit | 1135a0714613b91642fc1c2c4b0d807250a55f5c (patch) | |
tree | 7f772a84eb368ecfa542b1eefd0710f0f2d643ea /avconv.c | |
parent | b12d21733975f9001eecb480fc28e5e4473b1327 (diff) | |
download | ffmpeg-1135a0714613b91642fc1c2c4b0d807250a55f5c.tar.gz |
avconv: free bitstream filters
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); } |