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

Commit 26cdc940 authored by Abhishek Arya's avatar Abhishek Arya
Browse files

Revert "Check for out of bounds reads in ESQueue. Bug: 23221340"

This reverts commit 4d344327.

Change-Id: Ibe4c9c3aa1546e10139e69fa906eb67b154520ff
parent 4d344327
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -1120,10 +1120,6 @@ sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitMPEGVideo() {
        }
        }


        if (mFormat != NULL && currentStartCode == 0xb8) {
        if (mFormat != NULL && currentStartCode == 0xb8) {
            if (offset + 7 <= size) {
                ALOGE("Size too small");
                return NULL;
            }
            // GOP layer
            // GOP layer
            gopFound = true;
            gopFound = true;
            isClosedGop = (data[offset + 7] & 0x40) != 0;
            isClosedGop = (data[offset + 7] & 0x40) != 0;