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

Fix Seek returns incorrect position #19

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

boenshao
Copy link
Contributor

When using the Seeker to pares MP4 files, I noticed that with io.SeekCurrent, the returned position is off and non-deterministic.

I don't really understand the implementation, I just added some test cases and tinkering the code with the debugger.

Eventually, the test passed, and it parsed lots of MP4 correctly, I believe it's fixed.

@klauspost
Copy link
Owner

Thanks!

@klauspost klauspost merged commit cc3ed31 into klauspost:master Aug 15, 2024
10 checks passed
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