summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-18 13:19:22 +0200
committerwm4 <wm4@nowhere>2013-05-18 17:45:55 +0200
commit228c3d209cb27a5b6a3cc2dc5b543aeadec244cf (patch)
treea28d8bd3a742aa8bbbb68c1635758390e18a7dde /video
parent541fe30ba9c4f9bec936e4a8f3a478e9ed6f8156 (diff)
downloadmpv-228c3d209cb27a5b6a3cc2dc5b543aeadec244cf.tar.bz2
mpv-228c3d209cb27a5b6a3cc2dc5b543aeadec244cf.tar.xz
vo_image: start image file numbers at 1
Requested by a user.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_image.c4
1 files changed, 2 insertions, 2 deletions
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)