diff options
-rw-r--r-- | src/overlap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |