vf_unsharp: vertically align lines, for better readability
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 12 Aug 2011 22:41:17 +0000 (00:41 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 13 Aug 2011 14:45:13 +0000 (16:45 +0200)
libavfilter/vf_unsharp.c

index 575eddd..bdbfd30 100644 (file)
@@ -99,8 +99,8 @@ static void apply_unsharp(      uint8_t *dst, int dst_stride,
                 tmp1 = sc[z + 1][x + fp->steps_x] + tmp2; sc[z + 1][x + fp->steps_x] = tmp2;
             }
             if (x >= fp->steps_x && y >= fp->steps_y) {
-                const uint8_tsrx = src - fp->steps_y * src_stride + x - fp->steps_x;
-                uint8_tdsx = dst - fp->steps_y * dst_stride + x - fp->steps_x;
+                const uint8_t *srx = src - fp->steps_y * src_stride + x - fp->steps_x;
+                uint8_t       *dsx = dst - fp->steps_y * dst_stride + x - fp->steps_x;
 
                 res = (int32_t)*srx + ((((int32_t) * srx - (int32_t)((tmp1 + fp->halfscale) >> fp->scalebits)) * fp->amount) >> 16);
                 *dsx = av_clip_uint8(res);