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

diff --git a/avconv.c b/avconv.c
index f3e6e28..8981641 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2786,6 +2786,15 @@ static int transcode(OutputFile *output_files,
                     audio_resample_close(ost->resample);
                 if (ost->reformat_ctx)
                     av_audio_convert_free(ost->reformat_ctx);
+                if (ost->bitstream_filters) {
+                    AVBitStreamFilterContext *bsfc = ost->bitstream_filters;
+                    while (bsfc) {
+                        AVBitStreamFilterContext *next = bsfc->next;
+                        av_bitstream_filter_close(bsfc);
+                        bsfc = next;
+                    }
+                    ost->bitstream_filters = NULL;
+                }
                 av_dict_free(&ost->opts);
             }
         }
-- 
1.7.8.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to