]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bfi.c
Merge commit '97d35fa89f73468d64f663bfc0686aa6cddd8b6a'
[ffmpeg] / libavcodec / bfi.c
index 9cfcd14aa39da0b25800530b7898b2e714d173e3..924d7f83530cf822868d160b1d64cbb5ab443bd3 100644 (file)
@@ -42,6 +42,8 @@ static av_cold int bfi_decode_init(AVCodecContext *avctx)
     BFIContext *bfi = avctx->priv_data;
     avctx->pix_fmt  = AV_PIX_FMT_PAL8;
     bfi->dst        = av_mallocz(avctx->width * avctx->height);
+    if (!bfi->dst)
+        return AVERROR(ENOMEM);
     return 0;
 }