microsoft / lepton_jpeg_rust

Port of DropBox Lepton compression to Rust
Apache License 2.0
129 stars 10 forks source link

ensure we have clean codes errors if a decode thread fails #40

Closed mcroomp closed 1 year ago

mcroomp commented 1 year ago

There was a race condition where we'd fail with a generic error (channel broken) instead of the specific error that a decoding thread encountered. This wasn't a big deal before, but now that we check for the 16bit decoding error, it is more important that this is correct.