Author: Stefan Fritsch Description: afGetVirtualFrameSize() needs to be used instead of afGetFrameSize(), otherwise the allocated buffer size is too small for compressed WAV files (see #558399). --- a/src/adjust.c +++ b/src/adjust.c @@ -277,8 +277,8 @@ /* set up buffer to hold 1/100 of a second worth of frames */ frames_in_buf = samp_rate / 100; - src_framesz = afGetFrameSize(fhin, AF_DEFAULT_TRACK, 1); - dst_framesz = afGetFrameSize(fhout, AF_DEFAULT_TRACK, 1); + src_framesz = afGetVirtualFrameSize(fhin, AF_DEFAULT_TRACK, 1); + dst_framesz = afGetVirtualFrameSize(fhout, AF_DEFAULT_TRACK, 1); src_buf = (unsigned char *)xmalloc(frames_in_buf * src_framesz); dst_buf = (unsigned char *)xmalloc(frames_in_buf * dst_framesz); .