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

fix zstd compression level range #56

Merged
merged 2 commits into from
Jan 4, 2025
Merged

fix zstd compression level range #56

merged 2 commits into from
Jan 4, 2025

Conversation

oll3
Copy link
Owner

@oll3 oll3 commented Jan 4, 2025

Fixes #54.

When using zstd compression the valid compression range should be 1 - 22 but bita incorrectly limited to 21. This PR should fix this.

oll3 added 2 commits January 4, 2025 21:01
The range is invalid when used with zstd as the library typically supports up to level 22 while the range is limited to 21.
Remove the hardcoded range and validate the level when compression type is parsed instead.
@oll3 oll3 merged commit 319331f into main Jan 4, 2025
31 checks passed
@oll3 oll3 deleted the fix/compression-level-range branch January 7, 2025 19:56
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.

Unable to specify --compression-level "22" when using --compression "zstd"
1 participant