media/libraries
sheenachhabra 0b88e09a82 Improve durationsVuForStts method implementation
Issues with the current implementation
1. The implementation is unnecessarily complicated and can be
easily simplified.To make all the tracks start from the same time,
its only the first sample that require some timestamp adjustments
but the current implementation shifts all the timestamps. Since method
calculates the `sample duration`, shifting all the timestamps has no effect
as such.
2. The implementation always forced first sample to start at 0. But when we
want to use same method for `Fragmented MP4` then it will look inaccurate
as we will call this method for different `fragments` and each `fragment`
will not start from 0 presentation time. Although the output will be same
since this method returns `duration` and not the `timestamps`.
3. As per previous implementation if there is just one sample then
its duration is made equals to its presentation time, which looks incorrect.
With new changes, if a single sample is passed then its duration will always
be 0 irrespective of specified last sample duration behaviour.

PiperOrigin-RevId: 592826612
2023-12-21 04:45:43 -08:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Use platform constants for PCM 24/32 bit encoding 2023-12-20 08:16:35 -08:00
container Remove empty container/src/androidTest directory 2023-12-11 10:41:51 -08:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Move HttpEngineDataSource to the DataSource library. 2023-12-20 12:10:36 -08:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Satisfy nullness checker correctness by using local variable 2023-10-31 12:56:32 +00:00
decoder_av1 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-04 10:37:25 -07:00
decoder_ffmpeg Merge pull request #867 from equeim:ndk-r26 2023-12-12 03:48:08 -08:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08:00
decoder_opus Map VORBIS channel layout to Android layout 2023-12-05 03:01:32 -08:00
decoder_vp9 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-04 10:37:25 -07:00
effect Effect: Move inputColorInfo javadoc to registerInputStream. 2023-12-15 10:52:22 -08:00
exoplayer Split creation of AudioCapabilitiesReceiver from instance access 2023-12-20 10:12:27 -08:00
exoplayer_dash Add DASH CEA-608 playback test 2023-12-20 01:13:21 -08:00
exoplayer_hls Fix HLS CEA-608 when parsing during extraction 2023-12-20 08:52:39 -08:00
exoplayer_ima Set MIME type from IMA SDK on ads MediaItem 2023-11-14 09:12:07 -08:00
exoplayer_rtsp Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-17 06:35:19 -07:00
exoplayer_smoothstreaming Fix sending negative bufferedDurationUs to CmcdData.Factory 2023-12-14 17:39:41 -08:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Throw a clear error from Cea608/708Parser.parseToLegacySubtitle 2023-12-19 08:34:37 -08:00
muxer Improve durationsVuForStts method implementation 2023-12-21 04:45:43 -08:00
session Fix broadcasting notifyChildrenChanged for legacy controllers 2023-12-14 05:20:39 -08:00
test_data Fix HLS CEA-608 when parsing during extraction 2023-12-20 08:52:39 -08:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Add session extras to the state of the controller 2023-11-21 14:32:33 -08:00
test_session_current Fix broadcasting notifyChildrenChanged for legacy controllers 2023-12-14 05:20:39 -08:00
test_utils Effect: Move VideoFrameProcessor inputColorInfo interface to FrameInfo. 2023-12-15 09:17:39 -08:00
test_utils_robolectric Fix handling of multiple HEVC tracks in JPEG motion photos 2023-12-11 08:31:13 -08:00
transformer Make DefaultDecoderFactory try multiple formats before giving up 2023-12-20 12:07:19 -08:00
ui Workaround layout problems with Material Design 2023-11-15 02:57:03 -08:00
ui_leanback Prevent forwarding of zero video size to Leanback 2023-08-30 12:20:51 -07:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00