Repository navigation
FLAC: Fix corruption of shrinking metadata - #641
Conversation
|
Good evening, Do you have a test that tries to change an existing flac file metadata and then checks that the file is still valid? Cheers, |
|
@abique Yeah, I added a test for each tag type that checks its validity after a grow and shrink. I haven't pushed it here yet since it actually caught another bug 😪. I'll try to get this out by tomorrow |
|
I confirm the fix (tested editing two different files). Thank you very much 👍 |
| /// 4. Rewrites the large tag | ||
| /// 5. Checks the file again with FFmpeg | ||
| fn tag_resize_test(path: &str, tag_type: TagType) { | ||
| fn check_file(path: &Path) { |
There was a problem hiding this comment.
I suggest to combine multiple ways to test the flac file here maybe? For example in case of flac you could test both ffmpeg and flac -t. You could also have on test that is simply about reading the file using symphonia.
Maybe better 3 tests than 1? :-)
closes #640