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