--- a/rgb2rgb_template.c
+++ b/rgb2rgb_template.c
@@ -323,8 +323,6 @@
     {
         register uint16_t x= *((const uint16_t*)s);
         *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F);
-        s+=2;
-        d+=2;
     }
 }