summaryrefslogtreecommitdiff
path: root/libavfilter/vf_unsharp.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-06-27 19:02:15 +0000
committerMartin Storsjö <martin@martin.st>2010-06-27 19:02:15 +0000
commit206afa55e25245183d945b10ee7331ab02beb990 (patch)
treed8fda42a899c9b55a0f6eb0edc876a3032b7640f /libavfilter/vf_unsharp.c
parent8b4845c0b031c0ca662314dc57b585002b44352a (diff)
Fix clang warning, make initialization more readable
Patch by Eli Friedman, eli dot friedman at gmail Originally committed as revision 23829 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 78a6d7c368..d2314a3f83 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -83,9 +83,9 @@ static void unsharpen(uint8_t *dst, uint8_t *src, int dst_stride, int src_stride
for (y = 0; y < 2 * fp->steps_y; y++)
memset(sc[y], 0, sizeof(sc[y][0]) * (width + 2 * fp->steps_x));
- for (y =- fp->steps_y; y < height + fp->steps_y; y++) {
+ for (y = -fp->steps_y; y < height + fp->steps_y; y++) {
memset(sr, 0, sizeof(sr[0]) * (2 * fp->steps_x - 1));
- for (x =- fp->steps_x; x < width + fp->steps_x; x++) {
+ for (x = -fp->steps_x; x < width + fp->steps_x; x++) {
tmp1 = x <= 0 ? src[0] : x >= width ? src[width-1] : src[x];
for (z = 0; z < fp->steps_x * 2; z += 2) {
tmp2 = sr[z + 0] + tmp1; sr[z + 0] = tmp1;