mirror of
https://github.com/samsonjs/media.git
synced 2026-04-14 12:45:47 +00:00
Don't check channels for E-AC3 JOC passthrough
PiperOrigin-RevId: 279841132
This commit is contained in:
parent
e49f1f8a61
commit
b477d8b68a
1 changed files with 2 additions and 1 deletions
|
|
@ -541,7 +541,8 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
|
|||
@C.Encoding
|
||||
protected int getPassthroughEncoding(int channelCount, String mimeType) {
|
||||
if (MimeTypes.AUDIO_E_AC3_JOC.equals(mimeType)) {
|
||||
if (audioSink.supportsOutput(channelCount, C.ENCODING_E_AC3_JOC)) {
|
||||
// E-AC3 JOC is object-based so the output channel count is arbitrary.
|
||||
if (audioSink.supportsOutput(/* channelCount= */ Format.NO_VALUE, C.ENCODING_E_AC3_JOC)) {
|
||||
return MimeTypes.getEncoding(MimeTypes.AUDIO_E_AC3_JOC);
|
||||
}
|
||||
// E-AC3 receivers can decode JOC streams, but in 2-D rather than 3-D, so try to fall back.
|
||||
|
|
|
|||
Loading…
Reference in a new issue