32131b0ccb
recommended_max_viewers() promises "at least 1", but a NaN safe_mbps cast to 0 and an infinite one to u32::MAX. Guard non-finite / non-positive inputs up front. Add unit tests covering the normal path, the floor, and the NaN/Inf/negative degenerate cases. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>