resample: fix UINT32_MAX fallback