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

Commit 225b230c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Removed __unused variable macro usage from ESQueue.cpp"

parents 5aac2989 538f573a
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -162,29 +162,26 @@ static unsigned parseAC3SyncFrame(
        return 0;
    }

    unsigned bsmod __unused = bits.getBits(3);
    bits.skipBits(3); // bsmod
    unsigned acmod = bits.getBits(3);
    unsigned cmixlev __unused = 0;
    unsigned surmixlev __unused = 0;
    unsigned dsurmod __unused = 0;

    if ((acmod & 1) > 0 && acmod != 1) {
        if (bits.numBitsLeft() < 2) {
            return 0;
        }
        cmixlev = bits.getBits(2);
        bits.skipBits(2); //cmixlev
    }
    if ((acmod & 4) > 0) {
        if (bits.numBitsLeft() < 2) {
            return 0;
        }
        surmixlev = bits.getBits(2);
        bits.skipBits(2); //surmixlev
    }
    if (acmod == 2) {
        if (bits.numBitsLeft() < 2) {
            return 0;
        }
        dsurmod = bits.getBits(2);
        bits.skipBits(2); //dsurmod
    }

    if (bits.numBitsLeft() < 1) {
@@ -259,7 +256,7 @@ static unsigned parseEAC3SyncFrame(
        samplingRate = samplingRateTable2[fscod2];
    } else {
        samplingRate = samplingRateTable[fscod];
        unsigned numblkscod __unused = bits.getBits(2);
        bits.skipBits(2); // numblkscod
    }

    unsigned acmod = bits.getBits(3);
@@ -1077,7 +1074,7 @@ sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitPCMAudio() {
    }
    unsigned numAUs = bits.getBits(8);
    bits.skipBits(8);
    unsigned quantization_word_length __unused = bits.getBits(2);
    bits.skipBits(2); // quantization_word_length
    unsigned audio_sampling_frequency = bits.getBits(3);
    unsigned num_channels = bits.getBits(3);