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

Commit 0105027f authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Fix wrong channel table in ESQueue according to the A/52 table 5.8

Reference: http://www.atsc.org/cms/standards/A52-2012(12-17).pdf
Bug: 12950777
Change-Id: Ic60033170b21e67408a3b3444507f6528946bdd0
parent dd432ce0
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};