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

Commit 11f51b04 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Avoid crash for stss sync sample number 0"

parents da4cb8cb 69861654
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -486,6 +486,10 @@ status_t SampleTable::setSyncSampleParams(off64_t data_offset, size_t data_size)
    }

    for (size_t i = 0; i < mNumSyncSamples; ++i) {
        if (mSyncSamples[i] == 0) {
            ALOGE("b/32423862, unexpected zero value in stss");
            continue;
        }
        mSyncSamples[i] = ntohl(mSyncSamples[i]) - 1;
    }