Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);
}