Index: source/row_any.cc |
diff --git a/source/row_any.cc b/source/row_any.cc |
index 69562d7d851a6965b2b2925ef8f31d48eeb3dc24..630ebb72efafc055694fdd3ac96b2bf682f1facf 100644 |
--- a/source/row_any.cc |
+++ b/source/row_any.cc |
@@ -678,17 +678,17 @@ ANY1(ARGBSetRow_Any_NEON, ARGBSetRow_NEON, uint32, 4, 3) |
temp + SS(r, UVSHIFT) * BPP - BPP, 4); \ |
} \ |
/* repeat last 4 - 12 bytes for 411 subsampler */ \ |
- if (((width & 1) == 1) && BPP == 4 && DUVSHIFT == 2) { \ |
+ if (((width & 3) == 1) && BPP == 4 && DUVSHIFT == 2) { \ |
memcpy(temp + SS(r, UVSHIFT) * BPP, \ |
temp + SS(r, UVSHIFT) * BPP - BPP, 4); \ |
memcpy(temp + SS(r, UVSHIFT) * BPP + 4, \ |
temp + SS(r, UVSHIFT) * BPP - BPP, 8); \ |
} \ |
- if (((width & 1) == 2) && BPP == 4 && DUVSHIFT == 2) { \ |
+ if (((width & 3) == 2) && BPP == 4 && DUVSHIFT == 2) { \ |
memcpy(temp + SS(r, UVSHIFT) * BPP, \ |
temp + SS(r, UVSHIFT) * BPP - BPP * 2, 8); \ |
} \ |
- if (((width & 1) == 3) && BPP == 4 && DUVSHIFT == 2) { \ |
+ if (((width & 3) == 3) && BPP == 4 && DUVSHIFT == 2) { \ |
memcpy(temp + SS(r, UVSHIFT) * BPP, \ |
temp + SS(r, UVSHIFT) * BPP - BPP, 4); \ |
} \ |