summaryrefslogtreecommitdiff
path: root/libavformat/oggparsetheora.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 09:36:12 +0100
committerAnton Khirnov <anton@khirnov.net>2013-10-30 08:45:31 +0100
commit4f2d8968c04ef76bb18df103a1287b864c0e6fe6 (patch)
tree6dcfd96ce2255bc94cd96a232a23b1d91ae7b4f4 /libavformat/oggparsetheora.c
parent5e5fb21877d8da7b3b8a27bb4d6a070d210c152d (diff)
downloadffmpeg-4f2d8968c04ef76bb18df103a1287b864c0e6fe6.tar.gz
oggparsetheora: check av_mallocz result
Diffstat (limited to 'libavformat/oggparsetheora.c')
-rw-r--r--libavformat/oggparsetheora.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index 3d5785b74c..961096edaa 100644
--- a/libavformat/oggparsetheora.c
+++ b/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;
}