summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/advtime.c6
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");
}