std/handsum: make 1:1 aspect ratio be landscape

This commit is contained in:
Nigel Tao committed 2026-05-05 10:34:48 +10:00
1 parent ff4132b3ca
commit 2822b1a65d
3 files changed
+26 -10

No files matched your search

+4 -1
View File
@@ -51002,7 +51002,10 @@ wuffs_handsum__decoder__do_decode_image_config(
goto exit;
}
self->private_impl.f_quality = ((v_c32 >> 5u) & 3u);
if ((v_c32 & 16u) == 0u) {
if ((v_c32 & 31u) == 31u) {
status = wuffs_base__make_status(wuffs_handsum__error__bad_header);
goto exit;
} else if ((v_c32 & 16u) == 0u) {
self->private_impl.f_width = 16u;
self->private_impl.f_height = ((v_c32 & 15u) + 1u);
} else {