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

Return a sentinel error for unsupported BitsAllocated #210

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

suyashkumar
Copy link
Owner

This ensures that we return a recognizable sentinel error when we are trying to parse a file with an unexpected BitsAllocated.

Previously, we would spin through the readNativeFrames loop without reading forward in the file, leading to an incorrect file offset when parsing the rest of the file which is not desirable.

Longer term, we should aim to possibly support non-standard bitsAllocated (not supported by binary.ByteOrder), though we need to understand what exactly that would mean

@suyashkumar suyashkumar self-assigned this Jul 16, 2021
@suyashkumar suyashkumar added bug Something isn't working enhancement New feature or request labels Jul 16, 2021
@suyashkumar suyashkumar merged commit 6c2dad5 into main Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant