summaryrefslogtreecommitdiffstats
path: root/gst/median
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2002-04-06 03:40:14 +0000
committerBenjamin Otte <otte@gnome.org>2002-04-06 03:40:14 +0000
commitffd4b556cc0e94ccdc92b6fa47a0d1b93ab6a26b (patch)
tree84480c8c8541ea0aafc2c7982e44bd88b1d73afc /gst/median
parent30cb4afbf65b8b6b3285cca41ffe81a7f1c78754 (diff)
fixed first bunch of compiler warnings
Original commit message from CVS: fixed first bunch of compiler warnings
Diffstat (limited to 'gst/median')
-rw-r--r--gst/median/gstmedian.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gst/median/gstmedian.c b/gst/median/gstmedian.c
index 79a1311a..9cedb2bc 100644
--- a/gst/median/gstmedian.c
+++ b/gst/median/gstmedian.c
@@ -195,10 +195,13 @@ median_5 (unsigned char *src, unsigned char *dest, int width, int height)
PIX_SORT(p[1],p[2]) ;
dest[i] = p[2];
}
- dest[i] = src[i++];
- dest[i] = src[i++];
+ dest[i] = src[i];
+ i++;
+ dest[i] = src[i];
+ i++;
}
- dest[i] = src[i++];
+ dest[i] = src[i];
+ i++;
}
static void
@@ -244,10 +247,13 @@ median_9 (unsigned char *src, unsigned char *dest, int width, int height)
PIX_SORT(p[4], p[2]) ;
dest[i] = p[4];
}
- dest[i] = src[i++];
- dest[i] = src[i++];
+ dest[i] = src[i];
+ i++;
+ dest[i] = src[i];
+ i++;
}
- dest[i] = src[i++];
+ dest[i] = src[i];
+ i++;
}
static void