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

Commit 754a0b85 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Removed __unused variable macro usage from ESQueue.cpp" am: 225b230c...

Merge "Removed __unused variable macro usage from ESQueue.cpp" am: 225b230c am: e30ccb41 am: c1621623

Change-Id: I34d3e5729a4e60e176e7a8a8ab3d96bf0aeec676
parents a6ca55ce c1621623
Loading
Loading
Loading
Loading
+6 −9
Original line number Original line Diff line number Diff line
@@ -172,29 +172,26 @@ static unsigned parseAC3SyncFrame(
        return 0;
        return 0;
    }
    }


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


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


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


    unsigned acmod = bits.getBits(3);
    unsigned acmod = bits.getBits(3);
@@ -1087,7 +1084,7 @@ sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitPCMAudio() {
    }
    }
    unsigned numAUs = bits.getBits(8);
    unsigned numAUs = bits.getBits(8);
    bits.skipBits(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 audio_sampling_frequency = bits.getBits(3);
    unsigned num_channels = bits.getBits(3);
    unsigned num_channels = bits.getBits(3);