diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-20 02:41:44 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-20 02:41:44 +0100 |
| commit | 75fcc67794c2cecd23f45ffbd780f6fa4fba3aef (patch) | |
| tree | 558727a2ff9165ab1ff03d43e66f14fdc19bb20a | |
| parent | Update todo (diff) | |
| download | blind-75fcc67794c2cecd23f45ffbd780f6fa4fba3aef.tar.gz blind-75fcc67794c2cecd23f45ffbd780f6fa4fba3aef.tar.bz2 blind-75fcc67794c2cecd23f45ffbd780f6fa4fba3aef.tar.xz | |
Fix blind-from-text, blind-to-text works
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | TODO | 2 | ||||
| -rw-r--r-- | src/blind-to-text.c | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -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 index 73bf981..5467787 100644 --- 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); } |
