diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2018-08-05 12:34:21 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2018-08-28 10:11:01 +0530 |
commit | 26dc76324564fc572689509c2efb7f1cb8f41a45 (patch) | |
tree | ae65ded71ecab64a9b98bb4842784f0481dd9371 | |
parent | 964819fefdd14e4c147bbfd7d5183a8ea515fcdc (diff) | |
download | ffmpeg-26dc76324564fc572689509c2efb7f1cb8f41a45.tar.gz |
ffmpeg: add correct field for raw pts in -progress report
PTS is in microseconds, so correct field name is out_time_us.
Old field out_time_ms kept for now - will be removed after a suitable transition
period.
Fixes #7345
-rw-r--r-- | fftools/ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2459374f08..934dc71a74 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1794,9 +1794,11 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti if (total_size < 0) av_bprintf(&buf_script, "total_size=N/A\n"); else av_bprintf(&buf_script, "total_size=%"PRId64"\n", total_size); if (pts == AV_NOPTS_VALUE) { + av_bprintf(&buf_script, "out_time_us=N/A\n"); av_bprintf(&buf_script, "out_time_ms=N/A\n"); av_bprintf(&buf_script, "out_time=N/A\n"); } else { + av_bprintf(&buf_script, "out_time_us=%"PRId64"\n", pts); av_bprintf(&buf_script, "out_time_ms=%"PRId64"\n", pts); av_bprintf(&buf_script, "out_time=%s%02d:%02d:%02d.%06d\n", hours_sign, hours, mins, secs, us); |