From b5572ab861d77d377b6992ebedbe0d2765250c7c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 28 Nov 2012 19:12:42 +0100 Subject: [PATCH] vf_boxblur: cosmetics to reduce diff to qatar Signed-off-by: Michael Niedermayer --- libavfilter/vf_boxblur.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 9eea9b0e59..df250c84e5 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -155,12 +155,12 @@ static int config_input(AVFilterLink *inlink) boxblur->hsub = desc->log2_chroma_w; boxblur->vsub = desc->log2_chroma_h; - var_values[VAR_W] = inlink->w; - var_values[VAR_H] = inlink->h; + var_values[VAR_W] = inlink->w; + var_values[VAR_H] = inlink->h; var_values[VAR_CW] = cw = w>>boxblur->hsub; var_values[VAR_CH] = ch = h>>boxblur->vsub; - var_values[VAR_HSUB] = 1<hsub; - var_values[VAR_VSUB] = 1<vsub; + var_values[VAR_HSUB] = 1<hsub; + var_values[VAR_VSUB] = 1<vsub; #define EVAL_RADIUS_EXPR(comp) \ expr = boxblur->comp##_radius_expr; \ @@ -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;