Android 7.1.1 Release 41 (N4F27E)
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
Avoid crash for stss sync sample number 0
A sample number value of 0 means that the value stored in
the mSyncSamples array, would become negative (-1),
when converted to index value. This causes a crash.
Make sure that stss sample numbers are bigger
than 0 before converting sample number to index value.
Test: Playback video that triggers stss sync sample number 0
1 file changed