Commit a6c26d04 by tonihei Committed by Ian Baker

Remove condition that is always false.

The same condition is checked further up on L497 already.

PiperOrigin-RevId: 416324687
parent f0382585
...@@ -514,10 +514,7 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media ...@@ -514,10 +514,7 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
} else { } else {
// If the format is anything other than PCM then we assume that the audio decoder will // If the format is anything other than PCM then we assume that the audio decoder will
// output 16-bit PCM. // output 16-bit PCM.
pcmEncoding = pcmEncoding = C.ENCODING_PCM_16BIT;
MimeTypes.AUDIO_RAW.equals(format.sampleMimeType)
? format.pcmEncoding
: C.ENCODING_PCM_16BIT;
} }
audioSinkInputFormat = audioSinkInputFormat =
new Format.Builder() new Format.Builder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment