(wrong string) ée

From: <git_AT_suckless.org>
Date: Sat, 21 Jan 2017 16:44:13 +0100 (CET)

commit 9a8ac0ead65670ee86ba30e7b5b82cc697c82df8
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sat Jan 21 15:38:04 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sat Jan 21 15:38:04 2017 +0100

    blind-stack: the output video can be longer than the first input video
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/src/blind-stack.c b/src/blind-stack.c
index 7093e93..2bcc38c 100644
--- a/src/blind-stack.c
+++ b/src/blind-stack.c
_AT_@ -45,7 +45,7 @@ int
 main(int argc, char *argv[])
 {
         struct stream *streams;
- size_t n_streams, i;
+ size_t n_streams, i, frames = 0, tmp;
         int blend = 0;
         void (*process)(struct stream *streams, size_t n_streams, size_t n) = NULL;
 
_AT_@ -67,6 +67,8 @@ main(int argc, char *argv[])
                 streams[i].file = argv[i];
                 streams[i].fd = eopen(streams[i].file, O_RDONLY);
                 einit_stream(streams + i);
+ if (streams[i].frames > frames)
+ frames = streams[i].frames;
         }
 
         if (!strcmp(streams->pixfmt, "xyza"))
_AT_@ -74,8 +76,10 @@ main(int argc, char *argv[])
         else
                 eprintf("pixel format %s is not supported, try xyza\n", streams->pixfmt);
 
+ tmp = streams->frames, streams->frames = frames;
         fprint_stream_head(stdout, streams);
         efflush(stdout, "<stdout>");
+ streams->frames = tmp;
         process_multiple_streams(streams, n_streams, STDOUT_FILENO, "<stdout>", process);
 
         free(streams);
Received on Sat Jan 21 2017 - 16:44:13 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 21 2017 - 16:48:18 CET