mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
oggparsetheora: check av_mallocz result
This commit is contained in:
parent
5e5fb21877
commit
4f2d8968c0
@ -50,6 +50,8 @@ static int theora_header(AVFormatContext *s, int idx)
|
|||||||
|
|
||||||
if (!thp) {
|
if (!thp) {
|
||||||
thp = av_mallocz(sizeof(*thp));
|
thp = av_mallocz(sizeof(*thp));
|
||||||
|
if (!thp)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
os->private = thp;
|
os->private = thp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user