blind

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

commit e52ea779e7bc3e342b22c1e577651f9efe83fea1
parent 20df4601a67609c39be0d87239a9eaac78594850
Author: Mattias Andrée <maandree@kth.se>
Date:   Sat, 14 Jan 2017 09:47:04 +0100

blind-split: fix error check

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

Diffstat:
Msrc/blind-split.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/blind-split.c b/src/blind-split.c @@ -79,7 +79,7 @@ main(int argc, char *argv[]) stream.ptr = 0; } else if (ptr % frame_size) { eprintf("%s: incomplete frame\n", stream.file); - } else if (!unknown_length) { + } else if (!unknown_length || !to_end[i]) { eprintf("%s: file is shorter than expected\n", stream.file); } else { break;