]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/frwu.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / frwu.c
index eee34512b4c855233a6a39c60a81497af49faf33..b4394a3044dd3484b64f21dbe6d40f21c3394cbf 100644 (file)
@@ -33,6 +33,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     avctx->pix_fmt = PIX_FMT_UYVY422;
 
     avctx->coded_frame = avcodec_alloc_frame();
+    if (!avctx->coded_frame)
+        return AVERROR(ENOMEM);
 
     return 0;
 }