blind

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

commit edc0a1ca9c1c85a77ac04eb78c8fa208e0c5b24f
parent 0ca8f64f61b534ba2428236fec2c8879fe58c059
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 14 Jul 2017 16:40:06 +0200

blind-stack: fix frame count prediction

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

Diffstat:
Msrc/blind-stack.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/blind-stack.c b/src/blind-stack.c @@ -65,7 +65,9 @@ main(int argc, char *argv[]) for (i = 0; i < n_streams; i++) { eopen_stream(streams + i, argv[i]); - if (shortest ? (streams[i].frames && streams[i].frames) < frames : streams[i].frames > frames) + if (shortest ? + (streams[i].frames && streams[i].frames < frames) : + (streams[i].frames || streams[i].frames > frames)) frames = streams[i].frames; }