mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
vc1test: Check malloc call
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
77fc7b7672
commit
02a7a5e330
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user