Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read.c: Use header size when parsing VisualSampleEntry #2140

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

vigneshvg
Copy link
Collaborator

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.

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.
@vigneshvg vigneshvg force-pushed the cl_visualsampleentry branch from af638ba to 9b028a5 Compare April 30, 2024 20:04
@vigneshvg vigneshvg requested a review from y-guyon April 30, 2024 20:35
@vigneshvg vigneshvg merged commit 2be0ec9 into AOMediaCodec:main Apr 30, 2024
11 checks passed
@vigneshvg vigneshvg deleted the cl_visualsampleentry branch April 30, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants