diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-31 17:18:07 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-31 17:18:07 +0100 |
commit | 316582ed83b9c70d7dd5ef8c8d60be32b7bd96bf (patch) | |
tree | 1ad12a0eb57224e67eb747a79d00c1fb379e88fe /src | |
parent | 3ff4da87a0b4ad742b436e6534b3217623824ff4 (diff) | |
download | advtime-316582ed83b9c70d7dd5ef8c8d60be32b7bd96bf.tar.gz advtime-316582ed83b9c70d7dd5ef8c8d60be32b7bd96bf.tar.bz2 advtime-316582ed83b9c70d7dd5ef8c8d60be32b7bd96bf.zip |
overlap: Use video_decode_seek to get fast to last frame
Diffstat (limited to 'src')
-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); |