summaryrefslogtreecommitdiff
path: root/libavformat/gif.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-05-06 09:16:36 +0000
committerDiego Biurrun <diego@biurrun.de>2008-05-06 09:16:36 +0000
commitccd425e7993ef0e76da7bf10c566d33f7acc7c6d (patch)
tree29a2af2f8eb50c22d5b23cca7763d9d507273cab /libavformat/gif.c
parent91605c69fb79bc37e7b8ae756b42bbe1f3cf5423 (diff)
Remove unnecessary parentheses from return calls.
Originally committed as revision 13069 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r--libavformat/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 7b71faea93..b952fbe697 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -236,7 +236,7 @@ static int gif_image_write_header(ByteIOContext *pb,
/* 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);
}