Skip to content
Snippets Groups Projects
Commit 4f2d8968 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

oggparsetheora: check av_mallocz result

parent 5e5fb218
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment