mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +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) {
|
||||
thp = av_mallocz(sizeof(*thp));
|
||||
if (!thp)
|
||||
return AVERROR(ENOMEM);
|
||||
os->private = thp;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user