aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vu-repeat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vu-repeat.c b/src/vu-repeat.c
index f25253d..92844f1 100644
--- a/src/vu-repeat.c
+++ b/src/vu-repeat.c
@@ -37,6 +37,9 @@ main(int argc, char *argv[])
if (stream.fd < 0)
eprintf("open %s:", stream.file);
einit_stream(&stream);
+ if (stream->frame > SIZE_MAX / count)
+ eprintf("%s: video too long\n", stream.file);
+ stream->frame *= count;
fprint_stream_head(stdout, &stream);
fflush(stdout);
if (ferror(stdout))