mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 18:41:27 +01:00
PrefixDetector::detect requires each call's bytes to start with the previous call's bytes. Two integration tests passed a buffer that broke that rule, so a detector that rechecks the SOI before resuming would have failed them while still honoring the contract. The tests now pass longer prefixes of one file and compare each answer with detect_prefix on the same bytes. The check that a walk resumes at the marker it stopped at stays in the jpegls unit tests, and a new unit test checks that a walk that found a non-JPEG-LS frame header stays at that marker.