diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-09 10:57:14 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-09 10:57:14 +0000 |
commit | e400b95b3205d5b861346f525cf6f423d93d2f04 (patch) | |
tree | 4f884305cb77f3e4efacdf610280d3e16b718966 /libavformat | |
parent | c2dd01c16fb13aed5f4896bbe14ea65db5d66862 (diff) | |
download | ffmpeg-streaming-e400b95b3205d5b861346f525cf6f423d93d2f04.zip ffmpeg-streaming-e400b95b3205d5b861346f525cf6f423d93d2f04.tar.gz |
bink: check av_mallocz() return value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/bink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c index 20cf609..5eb2211 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -115,6 +115,8 @@ static int read_header(AVFormatContext *s) vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_id = CODEC_ID_BINKVIDEO; vst->codec->extradata = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE); + if (!vst->codec->extradata) + return AVERROR(ENOMEM); vst->codec->extradata_size = 4; avio_read(pb, vst->codec->extradata, 4); |