diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-09-09 13:53:43 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-09-09 13:53:43 +0200 |
| commit | dd9fceaae15e4fa597d0ffbaa12bdaeee26ae637 (patch) | |
| tree | 4b0abe774f045f237565c42a980dc58471af86c3 /core/image | |
| parent | 9abc3f67b52860f3fe85bfdbcd3bc014a4651ad5 (diff) | |
Make progressive JPEGs return a proper error
Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.
This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
Diffstat (limited to 'core/image')
| -rw-r--r-- | core/image/jpeg/jpeg.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/jpeg/jpeg.odin b/core/image/jpeg/jpeg.odin index 6da601c89..58c6dff50 100644 --- a/core/image/jpeg/jpeg.odin +++ b/core/image/jpeg/jpeg.odin @@ -637,7 +637,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a color_components[id].h_sampling_factor = cast(int)horizontal_sampling } case .SOF2: // Progressive DCT - unimplemented("SOF2") + fallthrough case .SOF3: // Lossless (sequential) fallthrough case .SOF5: // Differential sequential DCT |