Commit 1a3d142f authored by Piotr Bandurski's avatar Piotr Bandurski Committed by Michael Niedermayer

avcodec/bfi: check for malloc failure

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bb5e7d3b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment