Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ public Pair<Integer, Integer> getEncodingAndChannelConfigForPassthrough(
if (channelCount > 10) {
return null;
}
} else if (format.sampleMimeType.equals(MimeTypes.AUDIO_AC4)) {
// AC-4 content may contain channel (or object) count that does not have a matching channel
// mask. Override channel count to 2 (mapped to stereo channel masK) which is supported by
// all AC-4 offloaded decoders to avoid this limitation and allow track to open.
channelCount = 2;
} else if (!audioProfile.supportsChannelCount(channelCount)) {
return null;
}
Expand Down