1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

yop: check return value of av_frame_alloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-07-26 13:51:26 +00:00
parent 9437259276
commit 3838637bbb

View File

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