avcodec/tscc: check av_frame_alloc() for failure

This commit is contained in:
Paul B Mahol 2018-09-08 21:17:26 +02:00
parent 1e09dd96fe
commit 86e7e7816b

View File

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