Closed devimalka closed 6 months ago
Your file has a non spec-compliant application block. The metaflac
crate makes a lot of assumptions about your input and isn't prepared for much invalid/unexpected data. This is not the only reported case of a panic in the case of malformed inputs.
This is not an issue that can be solved within audiotags
, and with the metaflac
crate pretty much being abandoned at this point, there isn't much you can do outside of repairing your broken files.
I created a new issue to replace metaflac
with a fork we can upstream from there.
Closing this in favor of one tracking issue
i'm working on this music player i use audiotags to parse the metadata when the flac files are parsing some flac files parsing panic the program due to issue with the metaflac dependencie
thread 'main' panicked at 'range end index 4 out of range for slice of length 0', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/metaflac-0.2.5/src/block.rs:355:26ss
please find the function i created for parsing tags