Mercurial > libavformat.hg
comparison gif.c @ 3278:1de87c1b6a12 libavformat
Remove unnecessary parentheses from return calls.
author | diego |
---|---|
date | Tue, 06 May 2008 09:16:36 +0000 |
parents | ae1f1ef873ef |
children | 6f61c3b36632 |
comparison
equal
deleted
inserted
replaced
3277:ce8070648576 | 3278:1de87c1b6a12 |
---|---|
234 } | 234 } |
235 | 235 |
236 /* this is maybe slow, but allows for extensions */ | 236 /* this is maybe slow, but allows for extensions */ |
237 static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) | 237 static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) |
238 { | 238 { |
239 return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6)); | 239 return (((r) / 47) % 6) * 6 * 6 + (((g) / 47) % 6) * 6 + (((b) / 47) % 6); |
240 } | 240 } |
241 | 241 |
242 | 242 |
243 static int gif_image_write_image(ByteIOContext *pb, | 243 static int gif_image_write_image(ByteIOContext *pb, |
244 int x1, int y1, int width, int height, | 244 int x1, int y1, int width, int height, |