Skip to content

Commit

Permalink
Fall back from DTS HD to DTS
Browse files Browse the repository at this point in the history
#minor-release

PiperOrigin-RevId: 360384540
  • Loading branch information
andrewlewis authored and ojw28 committed Mar 2, 2021
1 parent 3f17f5d commit 292700e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,10 @@ private static Pair<Integer, Integer> getEncodingAndChannelConfigForPassthrough(
&& !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;
Expand Down

0 comments on commit 292700e

Please sign in to comment.