Commit df70d29b authored by Angie Chiang's avatar Angie Chiang Committed by Gerrit Code Review

Merge "Fix unsigned type error in gen_scaler.c" into nextgenv2

parents 15c37a5a dc1813ff
......@@ -193,11 +193,12 @@ void aom_vertical_band_2_1_scale_i_c(unsigned char *source,
unsigned int dest_pitch,
unsigned int dest_width) {
const unsigned char *const dest_end = dest + dest_width;
const int src_step = src_pitch;
(void)dest_pitch;
while (dest < dest_end) {
const unsigned int a = source[-src_pitch] * 3;
const unsigned int a = source[-src_step] * 3;
const unsigned int b = source[0] * 10;
const unsigned int c = source[src_pitch] * 3;
const unsigned int c = source[src_step] * 3;
dest[0] = (unsigned char)((8 + a + b + c) >> 4);
++source;
++dest;
......
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