mirror of
https://github.com/androidx/media.git
synced 2025-05-14 19:19:58 +08:00

Rounding down means that very small diferrences (e.g. 1 us) result in bytesToNextSpeedChange==0, which stalls progress forever as no new bytes are read. Rounding up instead ensures that we always read at least one audio frame if nextSpeedChangeTimeUs is in the future. PiperOrigin-RevId: 632116560