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

Commit 49960807 authored by Dongwon Kang's avatar Dongwon Kang Committed by Android Git Automerger
Browse files

am 0105027f: Fix wrong channel table in ESQueue according to the A/52 table 5.8

* commit '0105027f':
  Fix wrong channel table in ESQueue according to the A/52 table 5.8
parents 1c178d3e 0105027f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ void ElementaryStreamQueue::clear(bool clearFormat) {
// update metadata only applicable, and return the payload size
static unsigned parseAC3SyncFrame(
        const uint8_t *ptr, size_t size, sp<MetaData> *metaData) {
    static const unsigned channelCountTable[] = {2, 1, 2, 3, 4, 4, 5, 6};
    static const unsigned channelCountTable[] = {2, 1, 2, 3, 3, 4, 4, 5};
    static const unsigned samplingRateTable[] = {48000, 44100, 32000};
    static const unsigned rates[] = {32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
            320, 384, 448, 512, 576, 640};