blind

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

commit 870b3ec659fec553fbfb878fee5b3ce07d11b3ac
parent 4b9ab24c87f6df03264785f003bd8fa9da6a0ecd
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 20 Jan 2017 12:02:10 +0100

Fix blind-rewrite-head

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

Diffstat:
MTODO | 3---
Msrc/blind-rewrite-head.c | 4+---
2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/TODO b/TODO @@ -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 @@ -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) @@ -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(); }