transcoding: fix the resample output buffer allocation