summaryrefslogtreecommitdiff
path: root/libavformat/wc3movie.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-12 08:49:20 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-12 08:49:20 +0000
commitf28c4e756f6dc469127deefa116a7e0673f05927 (patch)
tree343a73aea9044792c53462730438ff5f5edc7bcb /libavformat/wc3movie.c
parentb275500706ac3a20ac59bdb6ee080dc32f3254cf (diff)
Slightly improve/correct description of wc3_pal_lookup
Originally committed as revision 18462 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wc3movie.c')
-rw-r--r--libavformat/wc3movie.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c
index b96d3e1f46..5369057dd4 100644
--- a/libavformat/wc3movie.c
+++ b/libavformat/wc3movie.c
@@ -76,9 +76,9 @@ typedef struct Wc3DemuxContext {
* palette lookup table that does gamma correction
*
* can be calculated by this formula:
- * for i between 0 and 252 inclusive:
- * wc3_pal_lookup[i] = pow(i / 256.0, 0.8) * 256;
- * values 253, 254 and 255 are all 0xFD
+ * for i between 0 and 251 inclusive:
+ * wc3_pal_lookup[i] = round(pow(i / 256.0, 0.8) * 256);
+ * values 252, 253, 254 and 255 are all 0xFD
* calculating this at runtime should not cause any
* rounding issues, the maximum difference between
* the table values and the calculated doubles is