Remove skip channelCount check for ENCODING_DTS

This commit is contained in:
Cedric T 2023-05-04 15:57:20 +08:00 committed by Tianyi Feng
parent 6823a2916a
commit c0e03f14a8

View File

@ -214,8 +214,7 @@ public final class AudioCapabilities {
return null;
}
int channelCount;
if (format.channelCount == Format.NO_VALUE || encoding == C.ENCODING_E_AC3_JOC
|| encoding == C.ENCODING_DTS) {
if (format.channelCount == Format.NO_VALUE || encoding == C.ENCODING_E_AC3_JOC) {
// In HLS chunkless preparation, the format channel count and sample rate may be unset. See
// https://github.com/google/ExoPlayer/issues/10204 and b/222127949 for more details.
// For E-AC3 JOC, the format is object based so the format channel count is arbitrary.