summaryrefslogtreecommitdiff
path: root/libavfilter/vf_unsharp.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-04-04 10:08:37 +0200
committerDiego Biurrun <diego@biurrun.de>2012-04-04 19:34:40 +0200
commit1f068e4450620f4f6e20f024e442e3fd47876e37 (patch)
tree5aae48623e3da407bf0aa6ddcbcd1d12591bdbef /libavfilter/vf_unsharp.c
parent14af74e9a001f0544ee2362b624344154c4e8a0c (diff)
vf_unsharp: Mark readonly variable as const.
This fixes the following warning: libavfilter/vf_unsharp.c:106: warning: initialization discards qualifiers from pointer target type
Diffstat (limited to 'libavfilter/vf_unsharp.c')
-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 a40df137b6..7aca2cf32f 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -103,8 +103,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) {
- 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);