Browse Source

lavc/bitstream_filter: do not crash in case the argument of av_bitstream_filter_close() is NULL

tags/n2.0
Stefano Sabatini 12 years ago
parent
commit
41fe750f4b
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      libavcodec/bitstream_filter.c
  2. +1
    -1
      libavcodec/version.h

+ 2
- 0
libavcodec/bitstream_filter.c View 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);


+ 1
- 1
libavcodec/version.h View 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, \


Loading…
Cancel
Save