1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This commit is contained in:
Stefano Sabatini 2013-07-04 19:30:21 +02:00
parent 46ad287a2a
commit 41fe750f4b
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ AVBitStreamFilterContext *av_bitstream_filter_init(const char *name){
} }
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc){ void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc){
if (!bsfc)
return;
if(bsfc->filter->close) if(bsfc->filter->close)
bsfc->filter->close(bsfc); bsfc->filter->close(bsfc);
av_freep(&bsfc->priv_data); av_freep(&bsfc->priv_data);

View File

@ -30,7 +30,7 @@
#define LIBAVCODEC_VERSION_MAJOR 55 #define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 18 #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, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \ LIBAVCODEC_VERSION_MINOR, \