]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v210dec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / v210dec.c
index 1af7f943e13107a69999bd32113823f749e0d615..1703ceebddbf7b8d4b314666023261e18ad0e204 100644 (file)
@@ -58,6 +58,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);
 
     s->unpack_frame            = v210_planar_unpack_c;