summaryrefslogtreecommitdiff
path: root/gst/compositor/blend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/compositor/blend.c')
-rw-r--r--gst/compositor/blend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/compositor/blend.c b/gst/compositor/blend.c
index db7936253..7a69bdc9d 100644
--- a/gst/compositor/blend.c
+++ b/gst/compositor/blend.c
@@ -956,8 +956,8 @@ fill_checker_##name##_c (GstVideoFrame * frame) \
\
for (i = 0; i < height; i++) { \
for (j = 0; j < width; j++) { \
- dest[Y1] = tab[((i & 0x8) >> 3) + ((j & 0x8) >> 3)]; \
- dest[Y2] = tab[((i & 0x8) >> 3) + ((j & 0x8) >> 3)]; \
+ dest[Y1] = tab[((i & 0x8) >> 3) + (((2 * j + 0) & 0x8) >> 3)]; \
+ dest[Y2] = tab[((i & 0x8) >> 3) + (((2 * j + 1) & 0x8) >> 3)]; \
dest[U] = 128; \
dest[V] = 128; \
dest += 4; \