(wrong string) ée

From: <git_AT_suckless.org>
Date: Fri, 20 Jan 2017 12:02:15 +0100 (CET)

commit 870b3ec659fec553fbfb878fee5b3ce07d11b3ac
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Fri Jan 20 12:02:10 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Fri Jan 20 12:02:10 2017 +0100

    Fix blind-rewrite-head
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/TODO b/TODO
index e3f0601..539a0b9 100644
--- a/TODO
+++ b/TODO
_AT_@ -11,6 +11,3 @@ blind-find-frame a graphical tool for locating frames, should highlight key fram
                                 play audio. Should support both regular videos files and uivf.
 
 Add [-j jobs] to blind-from-video and blind-to-video.
-
-UNTESTED:
- blind-rewrite-head
diff --git a/src/blind-rewrite-head.c b/src/blind-rewrite-head.c
index 9111485..5e25645 100644
--- a/src/blind-rewrite-head.c
+++ b/src/blind-rewrite-head.c
_AT_@ -30,7 +30,7 @@ rewrite(struct stream *stream, int frames_auto)
                 eprintf("%s: not a regular file\n", stream->file);
 
         frame_count = (size_t)(st.st_size) / frame_size;
- if (frame_count * frame_size != (size_t)(st.st_size))
+ if (frame_count * frame_size != (size_t)(st.st_size) - stream->headlen)
                 eprintf("%s: given the select width and height, "
                         "the file has an incomplete frame\n", stream->file);
         if (frames_auto)
_AT_@ -117,8 +117,6 @@ main(int argc, char *argv[])
                         eprintf("choosen pixel format is unsupported\n");
         } else if (headless) {
                 eprintf("cannot use both 'same' and -h\n");
- } else if (argc > 1) {
- usage();
         }
 
 
Received on Fri Jan 20 2017 - 12:02:15 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 20 2017 - 12:12:16 CET