Commit bcd0a91e by andrewlewis Committed by marcbaechinger

Fall back from DTS HD to DTS

#minor-release

PiperOrigin-RevId: 360384540
parent 85702480
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
([#6384](https://github.com/google/ExoPlayer/issues/6384)). ([#6384](https://github.com/google/ExoPlayer/issues/6384)).
* Allow forcing offload for gapless content even if gapless playback is * Allow forcing offload for gapless content even if gapless playback is
not supported. not supported.
* Allow fall back from DTS-HD to DTS when playing via passthrough.
* Analytics: * Analytics:
* Add `onAudioCodecError` and `onVideoCodecError` to `AnalyticsListener`. * Add `onAudioCodecError` and `onVideoCodecError` to `AnalyticsListener`.
* Downloads and caching: * Downloads and caching:
......
...@@ -1482,6 +1482,10 @@ public final class DefaultAudioSink implements AudioSink { ...@@ -1482,6 +1482,10 @@ public final class DefaultAudioSink implements AudioSink {
&& !audioCapabilities.supportsEncoding(C.ENCODING_E_AC3_JOC)) { && !audioCapabilities.supportsEncoding(C.ENCODING_E_AC3_JOC)) {
// E-AC3 receivers support E-AC3 JOC streams (but decode only the base layer). // E-AC3 receivers support E-AC3 JOC streams (but decode only the base layer).
encoding = C.ENCODING_E_AC3; 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)) { if (!audioCapabilities.supportsEncoding(encoding)) {
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment