From 228c3d209cb27a5b6a3cc2dc5b543aeadec244cf Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 18 May 2013 13:19:22 +0200 Subject: vo_image: start image file numbers at 1 Requested by a user. --- video/out/vo_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/vo_image.c') diff --git a/video/out/vo_image.c b/video/out/vo_image.c index 32ab26dafe..a7c8c16da4 100644 --- a/video/out/vo_image.c +++ b/video/out/vo_image.c @@ -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) -- cgit v1.2.3