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

Commit eba95f2f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "improve performance of oggextractor::findNextPage()"

parents f39a648e 5bb4c0ab
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -364,7 +364,13 @@ status_t MyOggExtractor::findNextPage(
            return OK;
        }

        ++*pageOffset;
        // see how far ahead to skip; avoid some fruitless comparisons
        unsigned int i;
        for (i = 1; i < 4 ; i++) {
            if (signature[i] == 'O')
                break;
        }
        *pageOffset += i;
    }
}