Commit 3838637b authored by Paul B Mahol's avatar Paul B Mahol

yop: check return value of av_frame_alloc()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 94372592
...@@ -118,6 +118,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx) ...@@ -118,6 +118,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
} }
s->frame = av_frame_alloc(); s->frame = av_frame_alloc();
if (!s->frame)
return AVERROR(ENOMEM);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment