1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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