Fix out-of-range if first sample is not sync #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
mp4track output of first 3 samples of offending file without fix:
operator[]: illegal array index: 2147483647 of 4: errno: 34 (../mp4v2/src/mp4array.h,130)
sampleId 1, size 27 duration 2939 time 0 00:00:00.000
sampleId 2, size 24361 duration 5041 time 2939 00:00:00.032 S
sampleId 3, size 19542 duration 2880 time 7980 00:00:00.088
mp4track output of first 3 samples of offending file with fix:
sampleId 1, size 27 duration 2939 time 0 00:00:00.000
sampleId 2, size 24361 duration 5041 time 2939 00:00:00.032 S
sampleId 3, size 19542 duration 2880 time 7980 00:00:00.088
The video in question was created by a Sony Xperia L1 model g3311.
Note: I can't provide the file because of privacy reasons (it came from a customer).