Commit 9eff4b0d authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/oggparseogm: Check ff_alloc_extradata() for failure

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 170d864d
......@@ -110,7 +110,8 @@ ogm_header(AVFormatContext *s, int idx)
size -= 52;
if (bytestream2_get_bytes_left(&p) < size)
return AVERROR_INVALIDDATA;
ff_alloc_extradata(st->codecpar, size);
if (ff_alloc_extradata(st->codecpar, size) < 0)
return AVERROR(ENOMEM);
bytestream2_get_buffer(&p, st->codecpar->extradata, st->codecpar->extradata_size);
}
}
......
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