diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c index 4482a0e070..a192831144 100644 --- a/libavcodec/escape130.c +++ b/libavcodec/escape130.c @@ -125,7 +125,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) {