aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-26 13:51:26 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-26 13:51:26 +0000
commit3838637bbb140f793958cc797d33196296533db6 (patch)
tree3f32fc890369cca5cac8f389cab0e26e73c7d978 /libavcodec/yop.c
parent94372592767fb551060217df37f5aa3130ba1ca8 (diff)
downloadffmpeg-3838637bbb140f793958cc797d33196296533db6.tar.gz
yop: check return value of av_frame_alloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 807e1706af..6315add0c9 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -118,6 +118,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
}
s->frame = av_frame_alloc();
+ if (!s->frame)
+ return AVERROR(ENOMEM);
return 0;
}