diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c index a6fda901de..b7dc3f88d9 100644 --- a/libavcodec/escape130.c +++ b/libavcodec/escape130.c @@ -124,7 +124,7 @@ static av_cold int escape130_decode_init(AVCodecContext *avctx) return AVERROR_INVALIDDATA; } - s->old_y_avg = av_malloc(avctx->width * avctx->height / 4); + s->old_y_avg = av_mallocz(avctx->width * avctx->height / 4); s->buf1 = av_malloc(avctx->width * avctx->height * 3 / 2); s->buf2 = av_malloc(avctx->width * avctx->height * 3 / 2); if (!s->old_y_avg || !s->buf1 || !s->buf2) {