aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--src/blind-rewrite-head.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/TODO b/TODO
index e3f0601..539a0b9 100644
--- 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
index 9111485..5e25645 100644
--- 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();
}