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

Commit 56b1b8bb authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Fixed an issue in SampleTable where the table index was incorrectly wrapped around to -1"

parents d6008369 0950b4bd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -419,8 +419,10 @@ status_t SampleTable::findSyncSampleNear(

        ++left;
    }

    if (left > 0) {
        --left;
    }

    uint32_t x;
    if (mDataSource->readAt(
                mSyncSampleOffset + 8 + left * 4, &x, 4) != 4) {