mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/tscc: check av_frame_alloc() for failure
This commit is contained in:
parent
1e09dd96fe
commit
86e7e7816b
|
@ -169,6 +169,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||
}
|
||||
|
||||
c->frame = av_frame_alloc();
|
||||
if (!c->frame)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue