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

Commit 2943f747 authored by Roger1 Jonsson's avatar Roger1 Jonsson Committed by android-build-merger
Browse files

Merge "Avoid crash for stss sync sample number 0" am: 11f51b04

am: 9b81cc42

Change-Id: I13a6dbf5b431761288716d3d4b459e5153629c87
parents c9c32a8d 9b81cc42
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -572,6 +572,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;
    }