Skip to content
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

flac: normalize the frame's sample rate when reading it from a single byte #328

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

sscobici
Copy link

Fixes #293

Convert the value 192 to 192_000.
Without this conversion, the FLAC parser’s resync() method cannot find a valid frame and attempts to seek beyond the file size, causing an “unexpected end of file” error."

@pdeljanov pdeljanov merged commit 6c5dc5b into pdeljanov:dev-0.6 Dec 27, 2024
11 checks passed
@pdeljanov
Copy link
Owner

Thanks, nice find! That value is indeed in kHz.

@sscobici sscobici deleted the fix-flac-frame-sample-rate branch December 27, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants