swresample/swresample: Fix input channel count in resample_first computation