diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c index d31033229f..d8cad3535c 100644 --- a/libavcodec/r210dec.c +++ b/libavcodec/r210dec.c @@ -29,6 +29,8 @@ static av_cold int decode_init(AVCodecContext *avctx) avctx->bits_per_raw_sample = 10; avctx->coded_frame = avcodec_alloc_frame(); + if (!avctx->coded_frame) + return AVERROR(ENOMEM); return 0; }