Commit c1e4cbe3 authored by Steinar Midtskogen's avatar Steinar Midtskogen
Browse files

Fix increment bug in SIMD copy_rect8_*bit_to_16bit

BUG=aomedia:454

Change-Id: Ia91fb92fcc4827d7b5b022bd352fbee7d0d02efd
parent c5f735f9
......@@ -368,7 +368,7 @@ void SIMD_FUNC(copy_rect8_8bit_to_16bit)(uint16_t *dst, int dstride,
v64 row = v64_load_unaligned(&src[i * sstride + j]);
v128_store_unaligned(&dst[i * dstride + j], v128_unpack_u8_s16(row));
}
while (j++ < h) {
for (; j < h; j++) {
dst[i * dstride + j] = src[i * sstride + j];
}
}
......@@ -383,7 +383,7 @@ void SIMD_FUNC(copy_rect8_16bit_to_16bit)(uint16_t *dst, int dstride,
v128 row = v128_load_unaligned(&src[i * sstride + j]);
v128_store_unaligned(&dst[i * dstride + j], row);
}
while (j++ < h) {
for (; j < h; j++) {
dst[i * dstride + j] = src[i * sstride + j];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment