Commit b912895d authored by Paul B Mahol's avatar Paul B Mahol

mvi: check av_mallocz() result

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 822d10e7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment