From 86e7e7816b24b9ae1605735a790c2cef251c8210 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 8 Sep 2018 21:17:26 +0200 Subject: [PATCH] avcodec/tscc: check av_frame_alloc() for failure --- libavcodec/tscc.c | 2 ++ 1 file changed, 2 insertions(+) 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; }