remove some unneeded casts

Change-Id: Ie68788c77f016ed11446a55142b1bd8d96261452
This commit is contained in:
Pascal Massimino 2016-11-16 22:54:40 -08:00
parent 9ac063c37f
commit 3c2a61b099
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ static void SmartYUVUpdateRGB_C(const int16_t* ref, const int16_t* src,
int16_t* dst, int len) {
int i;
for (i = 0; i < len; ++i) {
const int diff_uv = (int)ref[i] - src[i];
const int diff_uv = ref[i] - src[i];
dst[i] += diff_uv;
}
}

View File

@ -821,7 +821,7 @@ static void SmartYUVUpdateRGB_SSE2(const int16_t* ref, const int16_t* src,
_mm_storeu_si128((__m128i*)(dst + i), E);
}
for (; i < len; ++i) {
const int diff_uv = (int)ref[i] - src[i];
const int diff_uv = ref[i] - src[i];
dst[i] += diff_uv;
}
}