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

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

Merge "Avoid crash for stss sync sample number 0" into lmp-dev

parents 82ffcbd6 024e783a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -552,6 +552,10 @@ status_t SampleTable::setSyncSampleParams(off64_t data_offset, size_t data_size)
    }

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