[FFmpeg-cvslog] avconv: free bitstream filters

Janne Grunau git at videolan.org
Mon Jan 2 03:25:14 CET 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Sun Jan  1 17:56:28 2012 +0100| [1135a0714613b91642fc1c2c4b0d807250a55f5c] | committer: Janne Grunau

avconv: free bitstream filters

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1135a0714613b91642fc1c2c4b0d807250a55f5c
---

 avconv.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/avconv.c b/avconv.c
index f3e6e28..3fa164f 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);
     }



More information about the ffmpeg-cvslog mailing list