oggparsetheora: check av_mallocz result

This commit is contained in:
Anton Khirnov 2013-10-27 09:36:12 +01:00
parent 5e5fb21877
commit 4f2d8968c0

View File

@ -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;
}