mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Fall back from DTS HD to DTS
#minor-release PiperOrigin-RevId: 360384540
This commit is contained in:
parent
8570248079
commit
bcd0a91ed6
@ -13,6 +13,7 @@
|
||||
([#6384](https://github.com/google/ExoPlayer/issues/6384)).
|
||||
* Allow forcing offload for gapless content even if gapless playback is
|
||||
not supported.
|
||||
* Allow fall back from DTS-HD to DTS when playing via passthrough.
|
||||
* Analytics:
|
||||
* Add `onAudioCodecError` and `onVideoCodecError` to `AnalyticsListener`.
|
||||
* Downloads and caching:
|
||||
|
@ -1482,6 +1482,10 @@ public final class DefaultAudioSink implements AudioSink {
|
||||
&& !audioCapabilities.supportsEncoding(C.ENCODING_E_AC3_JOC)) {
|
||||
// E-AC3 receivers support E-AC3 JOC streams (but decode only the base layer).
|
||||
encoding = C.ENCODING_E_AC3;
|
||||
} else if (encoding == C.ENCODING_DTS_HD
|
||||
&& !audioCapabilities.supportsEncoding(C.ENCODING_DTS_HD)) {
|
||||
// DTS receivers support DTS-HD streams (but decode only the core layer).
|
||||
encoding = C.ENCODING_DTS;
|
||||
}
|
||||
if (!audioCapabilities.supportsEncoding(encoding)) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user