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 dd10531..e562555 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 b9a2bc4..f6e2d71 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, \