diff imgconvert.c @ 6750:c93570aeb3eb libavcodec

Remove unnecessary parentheses from return calls.
author diego
date Tue, 06 May 2008 09:16:36 +0000
parents c9416ce3c09f
children 0e2576b1e753
line wrap: on
line diff
--- a/imgconvert.c	Sun May 04 22:39:12 2008 +0000
+++ b/imgconvert.c	Tue May 06 09:16:36 2008 +0000
@@ -1362,7 +1362,7 @@
 /* this is maybe slow, but allows for extensions */
 static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b)
 {
-    return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6));
+    return (((r) / 47) % 6) * 6 * 6 + (((g) / 47) % 6) * 6 + (((b) / 47) % 6);
 }
 
 static void build_rgb_palette(uint8_t *palette, int has_alpha)