Commit 02a7a5e3 authored by Nidhi Makhijani's avatar Nidhi Makhijani Committed by Diego Biurrun

vc1test: Check malloc call

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 77fc7b76
......@@ -62,6 +62,8 @@ static int vc1t_read_header(AVFormatContext *s)
st->codec->codec_id = AV_CODEC_ID_WMV3;
st->codec->extradata = av_malloc(VC1_EXTRADATA_SIZE);
if (!st->codec->extradata)
return AVERROR(ENOMEM);
st->codec->extradata_size = VC1_EXTRADATA_SIZE;
avio_read(pb, st->codec->extradata, VC1_EXTRADATA_SIZE);
st->codec->height = avio_rl32(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