summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-08-03 18:44:43 (GMT)
committer niels <niels@dyne.org>2015-08-03 18:44:43 (GMT)
commitd17353a67c8dbe066e9904c922a2879830c0f740 (patch)
treee2b1e4ca85908cb0b2bf920968fd83549bbf3f3e
parent07e3e5b4beb8924627c8b519f98af987c137a413 (diff)
fix FPE in keyselect
-rw-r--r--veejay-current/veejay-server/libvje/effects/keyselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/veejay-current/veejay-server/libvje/effects/keyselect.c b/veejay-current/veejay-server/libvje/effects/keyselect.c
index 6ed3623..7fe3157 100644
--- a/veejay-current/veejay-server/libvje/effects/keyselect.c
+++ b/veejay-current/veejay-server/libvje/effects/keyselect.c
@@ -95,7 +95,7 @@ uint8_t blend_func4(uint8_t a, uint8_t b) {
uint8_t blend_func5(uint8_t a, uint8_t b) {
uint8_t val;
- uint8_t c = 0xff - b;
+ uint8_t c = 256 - b;
val = b / c;
return CLAMP_Y(val);
}