summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:04:41 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:04:41 +0100
commit9bb72a11a532a10cfb813d001f4ab3fb3eeb3434 (patch)
treed088b7ef45b608275c1b16fb8caecc796c4fb6be
parent4622f27137e92d6fa497c289d0cdb7b912c6ffed (diff)
downloadadvtime-9bb72a11a532a10cfb813d001f4ab3fb3eeb3434.tar.gz
advtime-9bb72a11a532a10cfb813d001f4ab3fb3eeb3434.tar.bz2
advtime-9bb72a11a532a10cfb813d001f4ab3fb3eeb3434.zip
advtime: Need to start the interval from the previous dts
Or we duration and start time are not in sync.
-rw-r--r--src/advtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/advtime.c b/src/advtime.c
index 15fbcb7..d118f33 100644
--- a/src/advtime.c
+++ b/src/advtime.c
@@ -164,7 +164,7 @@ main(int argc, char **argv)
if (diff > 40.0) {
dts = vd->fmt_ctx->streams[0]->cur_dts;
- print_time(dts);
+ print_time(prev_dts);
printf(" ");
print_time(dts - prev_dts);
prev_dts = dts;