summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2023-12-24 07:01:56 -0500
committerDudemanguy <random342@airmail.cc>2023-12-28 15:45:08 +0000
commit579349b21cefba50cdd7993efcdcf958378f7007 (patch)
treec80ee1785f85e064ffe65e953dad87014240006c /player/screenshot.c
parentcdbc1ceb7006884174f61ba45addb7dd7b8d1c34 (diff)
downloadmpv-579349b21cefba50cdd7993efcdcf958378f7007.tar.bz2
mpv-579349b21cefba50cdd7993efcdcf958378f7007.tar.xz
screenshot: remove artificial limit on the number of screenshots taken
This allows taking more than 99999 screenshots in a single session, and also for the case when a sequence of 99999 screenshots already exists on the filesystem.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index e4d0912679..f537fc4604 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -166,7 +166,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
goto error_exit;
char fmtstr[] = {'%', '0', digits, 'd', '\0'};
res = talloc_asprintf_append(res, fmtstr, *frameno);
- if (*frameno < 100000 - 1) {
+ if (*frameno < INT_MAX - 1) {
(*frameno) += 1;
(*sequence) += 1;
}