resampler: round up when estimating input/output sizes