fuzz: fix pixel_swizzler_fuzzer build

This commit is contained in:
Nigel Tao committed 2023-08-21 22:22:31 +10:00
1 parent 6489915ed3
commit 7cdeeadbf4
1 file changed
+3 -1
+3 -1
View File
@@ -234,7 +234,8 @@ fuzz_swizzle_ycck(wuffs_base__io_buffer* src, uint64_t hash) {
uint32_t v0 = possible_hv_values[allow_hv3][3 & (hash >> 31)];
uint32_t v1 = possible_hv_values[allow_hv3][3 & (hash >> 33)];
uint32_t v2 = possible_hv_values[allow_hv3][3 & (hash >> 35)];
bool triangle_filter_for_2to1 = 1 & (hash >> 37);
bool is_rgb_or_cmyk = 1 & (hash >> 37);
bool triangle_filter_for_2to1 = 1 & (hash >> 38);
uint32_t width0 = 8 * width_in_mcus * h0;
uint32_t width1 = 8 * width_in_mcus * h1;
@@ -349,6 +350,7 @@ fuzz_swizzle_ycck(wuffs_base__io_buffer* src, uint64_t hash) {
width0, width1, width2, 0, //
h0, h1, h2, 0, //
v0, v1, v2, 0, //
is_rgb_or_cmyk, //
triangle_filter_for_2to1, //
wuffs_base__make_slice_u8(scratch_buffer, sizeof(scratch_buffer)));
if (status.repr) {