Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read.c: Use header size when parsing VisualSampleEntry
The current code uses avifROStreamRemainingBytes which is not correct. We are inside a for loop where each loop is a box with a fixed header size. So within each loop, we should not parse more than that loop's header size. Also return an error if there aren't enough bytes to parse VisualSampleEntry.
- Loading branch information