diff --git a/libavcodec/vb.c b/libavcodec/vb.c index 042ca56c25b532db12d62a5713517ffe89de621a..f4f2ee1bfc5767b05f644845df48c91a7a4dca5f 100644 --- a/libavcodec/vb.c +++ b/libavcodec/vb.c @@ -269,8 +269,8 @@ static av_cold int decode_init(AVCodecContext *avctx) c->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; - c->frame = av_malloc( avctx->width * avctx->height); - c->prev_frame = av_malloc( avctx->width * avctx->height); + c->frame = av_mallocz(avctx->width * avctx->height); + c->prev_frame = av_mallocz(avctx->width * avctx->height); memset(c->pal, 0, sizeof(c->pal));