diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 31e7caeeeb..35f7ad05dd 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -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; }