From ffd4b556cc0e94ccdc92b6fa47a0d1b93ab6a26b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 6 Apr 2002 03:40:14 +0000 Subject: fixed first bunch of compiler warnings Original commit message from CVS: fixed first bunch of compiler warnings --- gst/median/gstmedian.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'gst/median') 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 -- cgit