lavc/bitstream_filter: do not crash in case the argument of av_bitstream_filter_close...
authorStefano Sabatini <stefasab@gmail.com>
Thu, 4 Jul 2013 17:30:21 +0000 (19:30 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 4 Jul 2013 22:58:03 +0000 (00:58 +0200)
libavcodec/bitstream_filter.c
libavcodec/version.h

index dd105316eefc4fdb023c10c38d9356438d7cf23f..e562555f0194ff2d359162eb10feef120219ef42 100644 (file)
@@ -53,6 +53,8 @@ AVBitStreamFilterContext *av_bitstream_filter_init(const char *name){
 }
 
 void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc){
+    if (!bsfc)
+        return;
     if(bsfc->filter->close)
         bsfc->filter->close(bsfc);
     av_freep(&bsfc->priv_data);
index b9a2bc4b0d8875a2348258e65707cf41d10cdfe8..f6e2d71c9fb1f5f3ff0d5e1ba5846f09c8551727 100644 (file)
@@ -30,7 +30,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR 55
 #define LIBAVCODEC_VERSION_MINOR  18
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \