Commit 4f2d8968 authored by Anton Khirnov's avatar Anton Khirnov

oggparsetheora: check av_mallocz result

parent 5e5fb218
......@@ -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;
}
......
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