media/libraries
ibaker 2c46cea088 Use RoundingMode.DOWN in Util.scaleLargeTimestamp and friends
The implementation of these methods was updated from direct java integer
arithmetic in 885ddb167e.
In this change, `RoundingMode.FLOOR` was used to try and maintain
compatibility with java integer division. This was incorrect, because
java integer division uses `DOWN` (i.e. towards zero), rather than
`FLOOR` (i.e. towards negative infinity) semantics.

This change fixes the compatibility.

The dump file changes in this CL relate to tests that exercise edit
list behaviour. This involves manipulating negative timestamps, which
explains why they are impacted by this change.

PiperOrigin-RevId: 684013175
2024-10-09 06:24:26 -07:00
..
cast Remove @DoNotInline annotations 2024-09-18 04:47:39 -07:00
common Use RoundingMode.DOWN in Util.scaleLargeTimestamp and friends 2024-10-09 06:24:26 -07:00
common_ktx Add jvmTarget and kotlin-android plugin to common_ktx module 2024-08-15 10:36:10 -07:00
container Rename Atom to Mp4Box, and move it to container module 2024-08-15 05:44:32 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Assert baseDataSourceFactory non-null in DefaultDataSource.Factory 2024-09-18 02:00:03 -07:00
datasource_cronet Run CronetDataSource contract test for all Cronet providers 2024-08-01 10:49:37 -07:00
datasource_okhttp Automated Code Change 2024-08-07 12:28:25 -07:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder MediaCodecVideoRenderer skips decoder inputs unused as reference 2024-07-09 03:43:06 -07:00
decoder_av1 Fix erroneous use of "cpu_features" in AV1 JNI exports. 2024-09-12 07:30:47 -07:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Remove Multidex 2024-07-24 16:17:00 +01:00
decoder_iamf Return early when audioManager is null 2024-10-08 08:42:56 -07:00
decoder_midi Add missing module registrations 2024-05-23 04:50:01 -07:00
decoder_opus Remove Multidex 2024-07-24 16:17:00 +01:00
decoder_vp9 Remove Multidex 2024-07-24 16:17:00 +01:00
effect Make OverlayEffect take a List 2024-10-04 03:46:41 -07:00
exoplayer Recognize IAMF format and enhance channel count constraints 2024-10-09 05:50:58 -07:00
exoplayer_dash Report initial discontinuity for DASH periods that require preroll 2024-08-29 01:57:15 -07:00
exoplayer_hls Ensure consistent ExtractorOutput usage in WebvttExtractor 2024-10-08 07:04:50 -07:00
exoplayer_ima Account for missing preroll when converting adPodIndex to adGroupIndex 2024-10-04 08:11:04 -07:00
exoplayer_rtsp Format with google-java-format 2024-09-12 04:47:05 +00:00
exoplayer_smoothstreaming Improve frame rate calculation by using media duration from mdhd box 2024-09-18 10:42:11 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Fix Fmp4Extractor.init to use text transcoding ExtractorOutput 2024-10-08 10:11:18 -07:00
muxer Calculate min timestamp across tracks in the Boxes.moov method 2024-09-27 11:00:52 -07:00
session Don't advertise commands that are not available 2024-10-08 12:14:34 -07:00
test_data Use RoundingMode.DOWN in Util.scaleLargeTimestamp and friends 2024-10-09 06:24:26 -07:00
test_exoplayer_playback Revert erroneous changes 2024-07-24 16:17:02 +01:00
test_session_common Don't advertise commands that are not available 2024-10-08 12:14:34 -07:00
test_session_current Don't advertise commands that are not available 2024-10-08 12:14:34 -07:00
test_utils Update the comment of WRITE_TO_DEVICE enum 2024-09-26 07:17:43 -07:00
test_utils_robolectric Bump minSdk to 21 and remove resulting simple dead code 2024-07-12 08:11:01 -07:00
transformer Use RoundingMode.DOWN in Util.scaleLargeTimestamp and friends 2024-10-09 06:24:26 -07:00
ui Disable the language/role flag preferences when selecting "none" 2024-10-04 10:42:27 -07:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00