aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-13 00:41:17 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-13 16:45:13 +0200
commitccd85b869df5b745b904241d8b56e7b12e13bde4 (patch)
tree2fc9f289ed3b083fbd0f5f6e5b32ca3749c901c2
parent09603dcff8352f7096f93b2c7d1744f24312f376 (diff)
downloadffmpeg-ccd85b869df5b745b904241d8b56e7b12e13bde4.tar.gz
vf_unsharp: vertically align lines, for better readability
-rw-r--r--libavfilter/vf_unsharp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c
index 575eddd34e..bdbfd304e2 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -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_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;
+ 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);