Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fd8e4af authored by Wally Yau's avatar Wally Yau Committed by Android (Google) Code Review
Browse files

Merge "AC3/EAC3 MaxInputChannelCount support"

parents 7e547fbe b95d7b5a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1119,6 +1119,10 @@ public final class MediaCodecInfo {
                sampleRates = new int[] { 8000 };
                bitRates = Range.create(13000, 13000);
                maxChannels = 1;
            } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AC3)) {
                maxChannels = 6;
            } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_EAC3)) {
                maxChannels = 16;
            } else {
                Log.w(TAG, "Unsupported mime " + mime);
                mParent.mError |= ERROR_UNSUPPORTED;