From: Steve Underwood Date: Fri, 17 Aug 2012 10:36:29 +0000 (+0800) Subject: Fixed a typo in the fixed point image translate code X-Git-Tag: v1.2.3^2~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e399c697659982dcb0720ab002a2f37c7febf528;p=thirdparty%2Ffreeswitch.git Fixed a typo in the fixed point image translate code --- diff --git a/libs/spandsp/src/image_translate.c b/libs/spandsp/src/image_translate.c index 1d12c4fe95..32bed57138 100644 --- a/libs/spandsp/src/image_translate.c +++ b/libs/spandsp/src/image_translate.c @@ -464,7 +464,7 @@ static int image_resize_row(image_translate_state_t *s, uint8_t buf[]) x = i*256*input_width/output_width; frac_col = x & 0xFF; x >>= 8; - c1 = row16[0][x] + (((row16[0][x + 1] - row16[0[x])*frac_col) >> 8); + c1 = row16[0][x] + (((row16[0][x + 1] - row16[0][x])*frac_col) >> 8); c2 = row16[1][x] + (((row16[1][x + 1] - row16[1][x])*frac_col) >> 8); buf[i] = saturateu8(c1 + (((c2 - c1)*frac_row) >> 8)); #else