Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
402 stars 75 forks source link

Fix padding skipping in multiframe JPEG decoding #414

Closed Enet4 closed 10 months ago

Enet4 commented 10 months ago

Resolves #413, so that it can decode JPEG baseline with odd length fragments.

An alternative to trying to patch the decode implementation is to remove it entirely and let the trait's default implementation and decode_frame take its place.

Enet4 commented 10 months ago

Indeed I found issues in JpegAdapter, both trough the complete decode method and the per-frame method decode_frame. I believe that they have been fixed, and turning RUBO's 0003.dcm into images should work now.