oggparsetheora: check av_mallocz result

pull/45/head
Anton Khirnov 11 years ago
parent 5e5fb21877
commit 4f2d8968c0
  1. 2
      libavformat/oggparsetheora.c

@ -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…
Cancel
Save