Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Musepack V8: "Invalid SH packet size" #198
Originally reported by: Philipp Wolfer (Bitbucket: phwolfer, GitHub: Unknown)
Mutagen 1.25.1 produces an "Invalid SH packet size" for some Musepack files. E.g. the ones available on https://forum.musepack.net/showthread.php?t=654
I just encoded another FLAC file to Musepack and that worked, so it's only certain files that are affected. Stack trace for the error:
Thanks. Looking at the code in mpcenc.c it seems the SH packet size can be larger than the content in case the source wave file is smaller than specified in its header. So mutagen needs to be less strict here and ignore packet sizes.