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

Commit 0950b4bd authored by James Dong's avatar James Dong
Browse files

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

bug - 3198642

Change-Id: Ia0544172502fc771f48fce22d5c1db19ac3554bb
parent 80404319
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) {