blind

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

commit 75fcc67794c2cecd23f45ffbd780f6fa4fba3aef
parent bc28710d013533d08ebcf66f805f6b35f64ea6e4
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 20 Jan 2017 02:41:44 +0100

Fix blind-from-text, blind-to-text works

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

Diffstat:
MTODO | 2--
Msrc/blind-to-text.c | 4++--
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/TODO b/TODO @@ -16,6 +16,4 @@ UNTESTED: blind-crop blind-cut blind-extend - blind-from-text blind-rewrite-head - blind-to-text diff --git a/src/blind-to-text.c b/src/blind-to-text.c @@ -38,10 +38,10 @@ main(int argc, char *argv[]) else eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt); - printf("%zu %zu %zu %s", stream.frames, stream.width, stream.height, stream.pixfmt); + printf("%zu %zu %zu %s\n", stream.frames, stream.width, stream.height, stream.pixfmt); while ((n = eread_stream(&stream, SIZE_MAX))) { - n -= n % stream.pixel_size; + n = stream.ptr - (stream.ptr % stream.pixel_size); process(&stream, n); memmove(stream.buf, stream.buf + n, stream.ptr -= n); }