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.
This commit is contained in:
nanahi 2023-12-24 07:01:56 -05:00 committed by Dudemanguy
parent cdbc1ceb70
commit 579349b21c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}