[FFmpeg-cvslog] r10288 - in trunk/libavcodec: avcodec.h bitstream_filter.c

benoit subversion
Tue Sep 4 08:48:23 CEST 2007


Author: benoit
Date: Tue Sep  4 08:48:22 2007
New Revision: 10288

Log:
add a close function to bitstream filter


Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/bitstream_filter.c

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	(original)
+++ trunk/libavcodec/avcodec.h	Tue Sep  4 08:48:22 2007
@@ -33,8 +33,8 @@
 #define AV_STRINGIFY(s)         AV_TOSTRING(s)
 #define AV_TOSTRING(s) #s
 
-#define LIBAVCODEC_VERSION_INT  ((51<<16)+(42<<8)+0)
-#define LIBAVCODEC_VERSION      51.42.0
+#define LIBAVCODEC_VERSION_INT  ((51<<16)+(43<<8)+0)
+#define LIBAVCODEC_VERSION      51.43.0
 #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
 
 #define LIBAVCODEC_IDENT        "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
@@ -2798,6 +2798,7 @@ typedef struct AVBitStreamFilter {
                   AVCodecContext *avctx, const char *args,
                   uint8_t **poutbuf, int *poutbuf_size,
                   const uint8_t *buf, int buf_size, int keyframe);
+    void (*close)(AVBitStreamFilterContext *bsfc);
     struct AVBitStreamFilter *next;
 } AVBitStreamFilter;
 

Modified: trunk/libavcodec/bitstream_filter.c
==============================================================================
--- trunk/libavcodec/bitstream_filter.c	(original)
+++ trunk/libavcodec/bitstream_filter.c	Tue Sep  4 08:48:22 2007
@@ -43,6 +43,8 @@ AVBitStreamFilterContext *av_bitstream_f
 }
 
 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);




More information about the ffmpeg-cvslog mailing list