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

Throws error when decoder warns (not errors) #1

Closed
stephematician opened this issue Aug 6, 2023 · 2 comments
Closed

Throws error when decoder warns (not errors) #1

stephematician opened this issue Aug 6, 2023 · 2 comments

Comments

@stephematician
Copy link

Some webcameras (logitech) have extraneous bytes that cause an error to be thrown by this module's decompress - however they are still successfully decompressed by the library. See libjpeg-turbo/libjpeg-turbo#157.

Whether the error is a warning or a true error can be determined by the API via (see libjpeg-turbo/libjpeg-turbo#157 (comment)):

Simply ignoring the -1 return code if tjGetErrorCode()==TJERR_WARNING has the effect of making warnings irrelevant, which is what you want.

Also see: lilohuang/PyTurboJPEG#7

@Dobatymo
Copy link
Owner

Dobatymo commented Aug 6, 2023

Fixed in v0.0.2. Please verify!

@stephematician
Copy link
Author

Looks good to me.

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

2 participants