-
Notifications
You must be signed in to change notification settings - Fork 157
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
struct.error While assembling a wav file with fresh added tags. #654
Comments
struct.error: argument out of range
While assembling a wav file with fresh added tags.
The problem is that the WAVE file reports already wrong sizes. The frame holding the data specifies a size of 4294967295 bytes, which is the max. for an unsigned 32 bit integer. The data size reported for the entire file is also 4294967295, which doesn't add up already, because with the additional LIST frame and nested frame headers the data size would need to be 4294967374, which could not be saved. When mutagen tries to add another frame at the end and recalculates the sizes it will end up beyond the 4294967295 limit. Am I right to assume that the file was specifically created just as dummy test? I'd suggest fixing the file then instead. |
Hi, the title says it all
Python version:
3.11.4
mutagen version:
1.47.0
dummy.wav - https://files.catbox.moe/63bxyb.wav
Stacktrace:
The text was updated successfully, but these errors were encountered: