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

Commit b95d7b5a authored by ZhiWei Chen's avatar ZhiWei Chen Committed by Wally Yau
Browse files

AC3/EAC3 MaxInputChannelCount support

bug: 33972143
Change-Id: I63b6d5f8dcb66734ce0bd640febd91fb40bda333
parent b6f8556c
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;