avformat/wavenc: use av_mallocz_array()

Signed-off-by: Paul B Mahol <onemda@gmail.com>