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

Commit f4f620b5 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

am: b5f065d8

Change-Id: Ie439c522d76ce6ac144eb4f0cf792a5b7a325866
parents a5329e55 b5f065d8
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;