mirror of https://github.com/mpv-player/mpv
vo_image: start image file numbers at 1
Requested by a user.
This commit is contained in:
parent
541fe30ba9
commit
228c3d209c
|
@ -126,6 +126,8 @@ static void flip_page(struct vo *vo)
|
|||
{
|
||||
struct priv *p = vo->priv;
|
||||
|
||||
(p->frame)++;
|
||||
|
||||
void *t = talloc_new(NULL);
|
||||
char *filename = talloc_asprintf(t, "%08d.%s", p->frame,
|
||||
image_writer_file_ext(p->opts));
|
||||
|
@ -138,8 +140,6 @@ static void flip_page(struct vo *vo)
|
|||
|
||||
talloc_free(t);
|
||||
mp_image_unrefp(&p->current);
|
||||
|
||||
(p->frame)++;
|
||||
}
|
||||
|
||||
static int query_format(struct vo *vo, uint32_t fmt)
|
||||
|
|
Loading…
Reference in New Issue