yop: check return value of av_frame_alloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9437259276
commit
3838637bbb
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue