diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 20:24:38 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 20:24:38 +0100 |
commit | c535a4c6bd153c1918cfd0d907fbb197519d535d (patch) | |
tree | 2e706dee7ab24e26318462265b5918fdc779fff0 /src | |
parent | 7b53c2b29bb9fc77c9c0515446199ebe20cc0de0 (diff) | |
download | advtime-c535a4c6bd153c1918cfd0d907fbb197519d535d.tar.gz advtime-c535a4c6bd153c1918cfd0d907fbb197519d535d.tar.bz2 advtime-c535a4c6bd153c1918cfd0d907fbb197519d535d.zip |
Use frame_a for last_dts
Diffstat (limited to 'src')
-rw-r--r-- | src/advtime.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/advtime.c b/src/advtime.c index 3cd8290..7d6c2f5 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -98,7 +98,6 @@ main(int argc, char **argv) int ret, ch; int diff_flag = 0, average_flag = 0, frame_flag = 0, showcut_flag = 0; int64_t timestamp = 0; - int64_t last_dts = 0; double diff = 0.0, old_diff = 0.0; char filename[BUFSIZ]; @@ -171,7 +170,7 @@ main(int argc, char **argv) } if (diff > 40.0) { - start_new_szene(last_dts, frame_b->dts); + start_new_szene(frame_a->dts, frame_b->dts); if (!frame_flag && !average_flag) { printf("\n"); @@ -194,13 +193,12 @@ main(int argc, char **argv) fflush(stdout); } - last_dts = frame_b->dts; pswap((void **)&frame_a, (void **)&frame_b); } if (diff_flag) { /* acutally we just finalize the last frame here */ - start_new_szene(last_dts, 0); + start_new_szene(frame_a->dts, 0); printf("\n"); } |