swresample/swresample: Use av_mallocz_array()