From 9bb72a11a532a10cfb813d001f4ab3fb3eeb3434 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 29 Jan 2013 19:04:41 +0100 Subject: advtime: Need to start the interval from the previous dts Or we duration and start time are not in sync. --- src/advtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit