diff options
| -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); } |
