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
(cherry picked from commit 024e783acdff65cdb8eb9de5ade3359ebb338a3b)
1 file changed