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 invalid comparison causing errors opening frame #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

partyfamine
Copy link

@partyfamine partyfamine commented May 14, 2022

I noticed that after modifying tags in foobar2000 that Open() would fail with the following error:
frame went over tag area
This was due to foobar2000 truncating the padding after the final frame and Open() was reading the audio data as the next frame size. The id == "" check should have caught this, but even though []byte{0, 0, 0, 0} will be printed as an empty string, it is not equivalent.

@n10v
Copy link
Owner

n10v commented May 16, 2022

Hey @partyfamine,
thanks a lot for this suggestion! Can you please add a test case for this situation? It will be a huge help!

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.

None yet

2 participants