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

Sample with Rice parameter escape codes #41

Closed
0xbzho opened this issue Oct 21, 2020 · 5 comments
Closed

Sample with Rice parameter escape codes #41

0xbzho opened this issue Oct 21, 2020 · 5 comments

Comments

@0xbzho
Copy link

0xbzho commented Oct 21, 2020

invalid-residual.flac.zip

This triggered:

frame.Subframe.decodeRicePart: The flac library test cases do not yet include any audio files with Rice parameter escape codes. If possible please consider contributing this audio sample to improve the reliability of the test cases.

The sample is a corruption of https://freesound.org/people/krestivo/sounds/27951/

@mewmew
Copy link
Member

mewmew commented Oct 21, 2020

@0xbzho thanks for sending the sample that triggered this code path. Just to clarify, is the sample a valid FLAC file? Or a corrupted one? If the latter, an error from the library is to be expected.

Cheers,
Robin

@0xbzho
Copy link
Author

0xbzho commented Oct 23, 2020

It's corrupted. I assumed you wanted valid and invalid samples for the code path. :-)

@0xbzho 0xbzho closed this as completed Oct 23, 2020
@mewmew
Copy link
Member

mewmew commented Oct 23, 2020

It's corrupted. I assumed you wanted valid and invalid samples for the code path. :-)

That's fair. For now, we'll only rely on valid FLAC test cases. Thanks for submitting the issue none-the-less. If you do come across a valid FLAC file with Rice parameter escape codes, please do submit them to us :)

Cheers
Robin

@wader
Copy link

wader commented Oct 24, 2020

It looks like escape coding was dropped in version 1.2.0 (xiph/flac@3b5f471) of the official flac encoding so maybe possible to build a version previous to that and generate a test file?

@mewmew
Copy link
Member

mewmew commented Oct 25, 2020

It looks like escape coding was dropped in version 1.2.0 (xiph/flac@3b5f471) of the official flac encoding so maybe possible to build a version previous to that and generate a test file?

Ah, ok. Good to know. I think I'm fine with having it as is until there are users with real world FLAC files having these escape codes. If the latest version of the official flac does not generate these we probably won't see many new flac files being produces with escape codes.

Cheers,
Robin

P.S. thanks @wader for looking into this issue :)

This issue was closed.
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

No branches or pull requests

3 participants