summaryrefslogtreecommitdiff
path: root/libavcodec/v210dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/v210dec.c')
-rw-r--r--libavcodec/v210dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index 37b4a3c423..d464572f78 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -34,6 +34,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;
}