diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 35c5e442a8..3da4150f05 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -917,7 +917,7 @@ static int w64_read_header(AVFormatContext *s) if (chunk_size == UINT32_MAX || (filesize >= 0 && chunk_size > filesize)) return AVERROR_INVALIDDATA; - value = av_mallocz(chunk_size + 1); + value = av_malloc(chunk_size + 1); if (!value) return AVERROR(ENOMEM);