blind-matrix-{rotate,transpose}: fix input check - blind - suckless command-line video editing utility
(HTM) git clone git://git.suckless.org/blind
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 62ffee45ea763a321606b8ec8fe1bcf0a3791d27
(DIR) parent 63288637cb354583456ce3afc2c227c90949e146
(HTM) Author: Mattias Andrée <maandree@kth.se>
Date: Fri, 14 Jul 2017 19:59:16 +0200
blind-matrix-{rotate,transpose}: fix input check
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
M src/blind-matrix-rotate.c | 2 +-
M src/blind-matrix-transpose.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/blind-matrix-rotate.c b/src/blind-matrix-rotate.c
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (stream.width != 1 && stream.height != 1)
+ if (stream.width != 1 || stream.height != 1)
eprintf("<stdin>: each frame must contain exactly 1 pixels\n");
stream.width = 3;
(DIR) diff --git a/src/blind-matrix-transpose.c b/src/blind-matrix-transpose.c
@@ -56,7 +56,7 @@ main(int argc, char *argv[])
eopen_stream(&stream, NULL);
- if (stream.width != 1 && stream.height != 12)
+ if (stream.width != 1 || stream.height != 1)
eprintf("<stdin>: each frame must contain exactly 1 pixels\n");
stream.width = 3;