Commit b5572ab8 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_boxblur: cosmetics to reduce diff to qatar

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7bfa2f25
......@@ -226,9 +226,9 @@ static inline void blur(uint8_t *dst, int dst_step, const uint8_t *src, int src_
* and subtracting 1 input pixel.
* The following code adopts this faster variant.
*/
int x, sum = 0;
const int length = radius*2 + 1;
const int inv = ((1<<16) + length/2)/length;
int x, sum = 0;
for (x = 0; x < radius; x++)
sum += src[x*src_step]<<1;
......
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