mirror of https://github.com/mpv-player/mpv
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:
parent
cdbc1ceb70
commit
579349b21c
|
@ -166,7 +166,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
char fmtstr[] = {'%', '0', digits, 'd', '\0'};
|
char fmtstr[] = {'%', '0', digits, 'd', '\0'};
|
||||||
res = talloc_asprintf_append(res, fmtstr, *frameno);
|
res = talloc_asprintf_append(res, fmtstr, *frameno);
|
||||||
if (*frameno < 100000 - 1) {
|
if (*frameno < INT_MAX - 1) {
|
||||||
(*frameno) += 1;
|
(*frameno) += 1;
|
||||||
(*sequence) += 1;
|
(*sequence) += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue