blind

suckless command-line video editing utility
git clone git://git.suckless.org/blind
Log | Files | Refs | README | LICENSE

commit 0ec6b43bdc2c15121280b771be2053d957537b6e
parent e6dd5644b6797000231f58c3e5b619abf2a74a8e
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 20 Jan 2017 14:31:02 +0100

blind-dissolve: fix direction

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
Msrc/blind-dissolve.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/blind-dissolve.c b/src/blind-dissolve.c @@ -17,7 +17,7 @@ process_xyza(struct stream *stream, size_t n, size_t f) double a; for (i = 0; i < n; i += stream->pixel_size) { a = ((double *)(stream->buf + i))[3]; - a = a * (double)f / fmd; + a = a * (double)(fm - f) / fmd; ((double *)(stream->buf + i))[3] = a; } } @@ -29,7 +29,7 @@ process_xyza_r(struct stream *stream, size_t n, size_t f) double a; for (i = 0; i < n; i += stream->pixel_size) { a = ((double *)(stream->buf + i))[3]; - a = a * (double)(fm - f) / fmd; + a = a * (double)f / fmd; ((double *)(stream->buf + i))[3] = a; } }