mirror of
https://github.com/androidx/media.git
synced 2025-05-05 14:40:50 +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)).
|
([#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 {
|
|||||||
&& !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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user