* qatar/master: oggparsetheora: check av_mallocz result Merged-by: Michael Niedermayer <michaelni@gmx.at>
@ -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;
}