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

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

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

parents a591fc4c 918ddcc9
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -360,7 +360,15 @@ void BlockIterator::advance_l() {


            res = mCluster->Parse(pos, len);
            res = mCluster->Parse(pos, len);
            ALOGV("Parse (2) returned %ld", res);
            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;
            mBlockEntryIndex = 0;
            continue;
            continue;