diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-20 12:02:10 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-20 12:02:10 +0100 |
| commit | 870b3ec659fec553fbfb878fee5b3ce07d11b3ac (patch) | |
| tree | e70eb413f9b189b689551f742be796f32a40d233 /src | |
| parent | Fix blind-cut (diff) | |
| download | blind-870b3ec659fec553fbfb878fee5b3ce07d11b3ac.tar.gz blind-870b3ec659fec553fbfb878fee5b3ce07d11b3ac.tar.bz2 blind-870b3ec659fec553fbfb878fee5b3ce07d11b3ac.tar.xz | |
Fix blind-rewrite-head
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/blind-rewrite-head.c | 4 |
1 files changed, 1 insertions, 3 deletions
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(); } |
