Commit cb58adaa authored by Michael Niedermayer's avatar Michael Niedermayer

g723.1: simplify scale_vector()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 431f8af8
......@@ -242,7 +242,7 @@ static int scale_vector(int16_t *vector, int length)
scale = shift_table[bits];
for (i = 0; i < length; i++)
vector[i] = (int16_t)(av_clipl_int32(vector[i] * scale << 1) >> 4);
vector[i] = (vector[i] * scale) >> 3;
return bits - 3;
}
......
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