diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/advtime.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/advtime.c b/src/advtime.c index 93a4057..581cee7 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -165,12 +165,14 @@ main(int argc, char **argv) dts = vd->fmt_ctx->streams[0]->cur_dts; print_time(dts); - printf("\t"); + printf(" "); print_time(dts - prev_dts); prev_dts = dts; - if (!frame_flag && !average_flag) + if (!frame_flag && !average_flag) { printf("\n"); + fflush(stdout); + } if (showcut_flag == 1) { snprintf(filename, BUFSIZ, "img/%04i.pgm", i); @@ -183,8 +185,10 @@ main(int argc, char **argv) } } - if (frame_flag || average_flag) + if (frame_flag || average_flag) { printf("\n"); + fflush(stdout); + } pswap(&frame_a, &frame_b); } |