blind

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

commit ff2ebdc2a84bc96bd59026f51556af9001e4cc61
parent 3b54793742de5a53141dd8711dd8cfb707d07471
Author: Mattias Andrée <maandree@kth.se>
Date:   Sat,  6 May 2017 11:47:55 +0200

blind-gauss-blur: fix -a

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

Diffstat:
Msrc/blind-gauss-blur.c | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/blind-gauss-blur.c b/src/blind-gauss-blur.c @@ -210,12 +210,6 @@ process_xyza(char *restrict output, char *restrict cbuf, char *restrict sbuf, memset(img, 0, cn);\ start = 0, end = colour->height;\ is_master = efork_jobs(&start, &end, jobs, &children);\ - if (noalpha) {\ - i1 = start * colour->width;\ - for (y1 = start; y1 < end; y1++)\ - for (x1 = 0; x1 < colour->width; x1++, i1++)\ - img[i1][3] = 1;\ - }\ i1 = start * colour->width;\ for (y1 = start; y1 < end; y1++) {\ for (x1 = 0; x1 < colour->width; x1++, i1++) {\ @@ -276,7 +270,7 @@ process_xyza(char *restrict output, char *restrict cbuf, char *restrict sbuf, } /* ensure the video if opaque if -a was used */ - if (!noalpha) { + if (noalpha) { i1 = start * colour->width; for (y1 = start; y1 < end; y1++) for (x1 = 0; x1 < colour->width; x1++, i1++)