diff bitstream_filter.c @ 5630:327f714d69c0 libavcodec

add a close function to bitstream filter
author benoit
date Tue, 04 Sep 2007 06:48:22 +0000
parents 654e035bc755
children b1fe945d73f9
line wrap: on
line diff
--- a/bitstream_filter.c	Mon Sep 03 08:46:24 2007 +0000
+++ b/bitstream_filter.c	Tue Sep 04 06:48:22 2007 +0000
@@ -43,6 +43,8 @@
 }
 
 void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc){
+    if(bsfc->filter->close)
+        bsfc->filter->close(bsfc);
     av_freep(&bsfc->priv_data);
     av_parser_close(bsfc->parser);
     av_free(bsfc);