diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-12-01 09:03:24 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-01 09:06:24 +0000 |
commit | b912895d94fd13c57ac2390b442a6f72a29f768c (patch) | |
tree | b98f18c2716ef2a1bb0045aa720130d454f025b3 | |
parent | 822d10e7c52eca4a107c1acc517d2be67517e9a7 (diff) | |
download | ffmpeg-b912895d94fd13c57ac2390b442a6f72a29f768c.tar.gz |
mvi: check av_mallocz() result
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavformat/mvi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mvi.c b/libavformat/mvi.c index 6ab95b90b0..9184927a2f 100644 --- a/libavformat/mvi.c +++ b/libavformat/mvi.c @@ -54,6 +54,8 @@ static int read_header(AVFormatContext *s) vst->codec->extradata_size = 2; vst->codec->extradata = av_mallocz(2 + FF_INPUT_BUFFER_PADDING_SIZE); + if (!vst->codec->extradata) + return AVERROR(ENOMEM); version = avio_r8(pb); vst->codec->extradata[0] = avio_r8(pb); |