media/libraries
tonihei b208d6d26e Fix decoder fallback logic for Dolby Atmos and Dolby Vision.
The media codec renderers have fallback logic in getDecoderInfos
to assume that E-AC3 decoders can handle the 2D version of E-AC3-JOC and
that H264/H265 decoders can handle some base layer of Dolby Vision
content. Both fallbacks are useful if there is no decoder for the
enhanced Dolby formats.

Both fallbacks are not applied during track selection at the moment
because the separate MediaCodecInfo.isCodecSupported method verifies
that the mime type corresponding to format.codecs is the same as the
decoder mime type (which isn't true for the fallback case).

To fix the fallback logic, we can just completely remove this additional
check because it's not needed in the context of this method that is only
called after we already established that the decoder can handle the
format.sampleMimeType.

In addition, we need to map the Dolby Vision profiles to the equivalent
H264/H265 profile to make the codec profile comparison sensible again.

PiperOrigin-RevId: 420959104
2022-01-11 13:47:17 +00:00
..
cast Include mediaId when marshalling a MediaItem to JSON 2022-01-11 13:29:06 +00:00
common Add Gradle constraints to common module to enforce matching versions 2022-01-05 12:15:35 +00:00
database Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource Change DefaultHttpDataSourceTest to an instrumentation test 2022-01-05 10:00:46 +00:00
datasource_cronet Update dependency versions 2021-11-19 14:42:25 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_av1 Rename some references from PlayerView to LegacyPlayerView 2022-01-11 13:41:50 +00:00
decoder_ffmpeg Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_flac Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_opus Fix 1 ErrorProneStyle finding: 2022-01-05 12:15:12 +00:00
decoder_vp9 Rename some references from PlayerView to LegacyPlayerView 2022-01-11 13:41:50 +00:00
exoplayer Fix decoder fallback logic for Dolby Atmos and Dolby Vision. 2022-01-11 13:47:17 +00:00
exoplayer_dash Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_hls Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_ima Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_rtsp Use RTSP server for RTSP auth realm. 2022-01-11 13:32:41 +00:00
exoplayer_smoothstreaming Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Parse CryptoInfo from simpleTag and set it into DrmInitData. 2022-01-05 12:15:27 +00:00
session MediaSessionService: Add missing addSession call 2022-01-11 13:36:23 +00:00
test_data DASH: Stop interpreting main track role as SELECTION_FLAG_DEFAULT 2022-01-05 12:15:27 +00:00
test_exoplayer_playback Migrate usages of deprecated MediaSourceFactory methods 2022-01-05 10:40:02 +00:00
test_session_common Migrate media3.session references from Window to MediaItem 2021-11-08 15:13:41 +00:00
test_session_current Fix missing notification of session release 2022-01-05 12:15:35 +00:00
test_utils Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
test_utils_robolectric Migrate usages of Window-based Player methods 2021-11-09 10:07:30 +00:00
transformer Replace static method with a static field. 2022-01-11 13:38:41 +00:00
ui Remove 'styled' from styledPlayerControlView field name 2022-01-11 13:42:59 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00