This is more correct and is consistent with the Javadoc. PiperOrigin-RevId: 383808096
Common code used by other ExoPlayer modules.