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

Commit 9eef302e authored by Pavan Chikkala's avatar Pavan Chikkala Committed by Steve Kondik
Browse files

libstagefright: Add check for bits avail to read

- If number of bits available to read from ABitReader
  is zero,do not call getBits.

Change-Id: I4b7332b03ed6ee1d7b6711e5b4c5dce396151b03
CRs-Fixed: 777657
parent b94613a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3079,7 +3079,7 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
                        extensionFlag, objectType);
            }

            if (numChannels == 0) {
            if (numChannels == 0 && (br.numBitsLeft() > 0)) {
                int32_t channelsEffectiveNum = 0;
                int32_t channelsNum = 0;
                const int32_t ElementInstanceTag __unused = br.getBits(4);