vo_image: start image file numbers at 1

Requested by a user.
This commit is contained in:
wm4 2013-05-18 13:19:22 +02:00
parent 541fe30ba9
commit 228c3d209c
1 changed files with 2 additions and 2 deletions

View File

@ -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)