mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
mvi: check av_mallocz() result
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
822d10e7c5
commit
b912895d94
@ -54,6 +54,8 @@ static int read_header(AVFormatContext *s)
|
|||||||
|
|
||||||
vst->codec->extradata_size = 2;
|
vst->codec->extradata_size = 2;
|
||||||
vst->codec->extradata = av_mallocz(2 + FF_INPUT_BUFFER_PADDING_SIZE);
|
vst->codec->extradata = av_mallocz(2 + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||||
|
if (!vst->codec->extradata)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
version = avio_r8(pb);
|
version = avio_r8(pb);
|
||||||
vst->codec->extradata[0] = avio_r8(pb);
|
vst->codec->extradata[0] = avio_r8(pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user