ref: f7b276c26be7564cbbfe6bd3e1a9bf7b59580cf1
parent: f407b304902e75d024e20a49e4295f5f3df720ed
parent: 24afb5d0367c6af705053a5c0e54e07609b0cf0d
author: James Zern <jzern@google.com>
date: Wed Sep 20 17:12:45 EDT 2017
Merge "Bug fix: fadst4() in vp9/encoder/vp9_dct.c"
--- a/vp9/encoder/vp9_dct.c
+++ b/vp9/encoder/vp9_dct.c
@@ -246,14 +246,13 @@
return;
}
- // 32-bit result is enough for the following multiplications.
- s0 = sinpi_1_9 * input[0];
- s1 = sinpi_4_9 * input[0];
- s2 = sinpi_2_9 * input[1];
- s3 = sinpi_1_9 * input[1];
- s4 = sinpi_3_9 * input[2];
- s5 = sinpi_4_9 * input[3];
- s6 = sinpi_2_9 * input[3];
+ s0 = sinpi_1_9 * x0;
+ s1 = sinpi_4_9 * x0;
+ s2 = sinpi_2_9 * x1;
+ s3 = sinpi_1_9 * x1;
+ s4 = sinpi_3_9 * x2;
+ s5 = sinpi_4_9 * x3;
+ s6 = sinpi_2_9 * x3;
s7 = x0 + x1 - x3;
x0 = s0 + s2 + s5;