mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
std/jpeg: prefer decode_frame errors over swizzle
"g++ script/manual-test-truncated-input.cc && ./a.out test/data/*" is now happy.
This commit is contained in:
1 parent
68b94fc206
commit
0f91f23bb6
2 files changed
+7
-2
No files matched your search
@@ -42156,7 +42156,10 @@ wuffs_jpeg__decoder__decode_frame(
|
||||
} else {
|
||||
v_swizzle_status = wuffs_jpeg__decoder__swizzle_colorful(self, a_dst, a_workbuf);
|
||||
}
|
||||
if (wuffs_base__status__is_error(&v_swizzle_status)) {
|
||||
if (wuffs_base__status__is_error(&v_ddf_status)) {
|
||||
status = v_ddf_status;
|
||||
goto exit;
|
||||
} else if (wuffs_base__status__is_error(&v_swizzle_status)) {
|
||||
status = v_swizzle_status;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user