We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffe53cb + 8f9673e commit 863a24aCopy full SHA for 863a24a
modules/bcdec/image_decompress_bcdec.cpp
@@ -64,7 +64,7 @@ static void decompress_image(BCdecFormat format, const void *src, void *dst, con
64
const uint32_t yblock = MIN(height - y, 4ul); \
65
const uint32_t xblock = MIN(width - x, 4ul); \
66
\
67
- const bool incomplete = yblock < 4 && xblock < 4; \
+ const bool incomplete = yblock < 4 || xblock < 4; \
68
uint8_t *dec_out = incomplete ? output : &dec_blocks[y * 4 * width + x * color_bytesize]; \
69
70
func(&src_blocks[src_pos], dec_out, 4 * color_components); \
0 commit comments