From 316582ed83b9c70d7dd5ef8c8d60be32b7bd96bf Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 31 Jan 2013 17:18:07 +0100 Subject: overlap: Use video_decode_seek to get fast to last frame --- src/overlap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/overlap.c b/src/overlap.c index 94fd9f5..771f2da 100644 --- a/src/overlap.c +++ b/src/overlap.c @@ -138,8 +138,8 @@ main(int argc, char **argv) return -ret; /* just get last frame of move */ - for (int i = 0; video_decode_get_frame(first_vd, &cur_frame) > 0; ++i) - pswap((void **)&cur_frame, (void **)&last_frame); + video_decode_seek(first_vd, first_vd->duration); + for (int i = 0; video_decode_get_frame(first_vd, &last_frame) > 0; ++i); ret = video_decode_init(&second_vd, argv[1], timestamp); -- cgit