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

Commit b5f065d8 authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

Merge "MatroskaExtractor: handle parse error." into pi-dev

am: aa60151a

Change-Id: Ibd2a951787c66d0d1f73d931c1650012f1298544
parents 44e26df4 aa60151a
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -360,7 +360,15 @@ void BlockIterator::advance_l() {

            res = mCluster->Parse(pos, len);
            ALOGV("Parse (2) returned %ld", res);
            CHECK_GE(res, 0);

            if (res < 0) {
                // I/O error

                ALOGE("Cluster::Parse returned result %ld", res);

                mCluster = NULL;
                break;
            }

            mBlockEntryIndex = 0;
            continue;