Symphonia not detecting CRC corruption in flac #365
Unanswered
gtunes-dev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, folks.
I'm looking into using Symphonia to validate media files in a small project I'm working on. I don't intend to implement playback, so packets get dropped on the floor in the decode loop.
I have flac files that I have intentionally corrupted. FLAC in -t mode detects the corruption as bad CRCs. Claxon does, too. Symphonia doesn't appear to. Symphonia makes it through the decode loop, which ends with an Unexpected Eof (which is what I see for valid files, too).
Should Symphonia be detecting corruption as I expect it to?
Here's logging at trace with Symphonia's and my own logging. Code is below - it's a modified version of a sample and doesn't stray far from the original.
Any help would be very appreciated.
Thanks!
[2025-03-19T16:13:01Z TRACE fspulse::analysis] Begin: Symphonia validate: A Woman's Worth.flac
[2025-03-19T16:13:01Z DEBUG symphonia_core::probe] found a possible format marker within [66, 4c, 61, 43, 0, 0, 0, 22, 12, 0, 12, 0, 0, 9, 5e, 0] @ 0+2 bytes.
[2025-03-19T16:13:01Z INFO symphonia_core::probe] found the format marker [66, 4c, 61, 43] @ 0+2 bytes.
[2025-03-19T16:13:09Z TRACE fspulse::analysis] Error::IoError in next_packet: Custom { kind: UnexpectedEof, error: "end of stream" }
[2025-03-19T16:13:09Z TRACE fspulse::analysis] End: Symphonia validate: A Woman's Worth.flac
` pub fn validate_flac_symphonia(path: &Path, file_name: &str, is_valid_prog: &ProgressBar) -> Result<bool, FsPulseError> {
// Try to create a Symphonia decoder
Beta Was this translation helpful? Give feedback.
All reactions