mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 12:22:09 +00:00
avcodec/asfdec: check return value of av_mallocz()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5e66d8ac63
commit
81f231b5c7
@ -465,6 +465,8 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size)
|
||||
st->codec->extradata_size = ffio_limit(pb, sizeX - 40);
|
||||
st->codec->extradata = av_mallocz(st->codec->extradata_size +
|
||||
FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (!st->codec->extradata)
|
||||
return AVERROR(ENOMEM);
|
||||
avio_read(pb, st->codec->extradata, st->codec->extradata_size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user