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

Commit d7789a4a authored by Marco Nelissen's avatar Marco Nelissen Committed by Automerger Merge Worker
Browse files

Merge "Limit iterations when parsing mkv file" into rvc-dev am: 84dff10e

Change-Id: I36f8cffe787e51eee308e7603011bf51ac464167
parents 1a4bd057 84dff10e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -339,7 +339,12 @@ void BlockIterator::advance() {
}

void BlockIterator::advance_l() {
    for (;;) {
    for (int i = 0;; i++) {
        if (i == 1000) {
            ALOGE("no block found after %d iterations, stopping", i);
            mCluster = NULL;
            break;
        }
        long res = mCluster->GetEntry(mBlockEntryIndex, mBlockEntry);
        ALOGV("GetEntry returned %ld", res);