[FFmpeg-cvslog] lavf/utils: fix timestamp trace log in estimate_timings() function

Stefano Sabatini git at videolan.org
Tue Jun 14 12:43:00 CEST 2016


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jun  2 17:50:00 2016 +0200| [4b5620446ada99829af146d16939c5634abcbf52] | committer: Stefano Sabatini

lavf/utils: fix timestamp trace log in estimate_timings() function

Use the correct timebase, also replace "stream" with "format" in the
context of the format.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b5620446ada99829af146d16939c5634abcbf52
---

 libavformat/utils.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7d44af0..25c9a1b 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2773,12 +2773,12 @@ static void estimate_timings(AVFormatContext *ic, int64_t old_offset)
         AVStream av_unused *st;
         for (i = 0; i < ic->nb_streams; i++) {
             st = ic->streams[i];
-            av_log(ic, AV_LOG_TRACE, "%d: start_time: %0.3f duration: %0.3f\n", i,
-                    (double) st->start_time / AV_TIME_BASE,
-                    (double) st->duration   / AV_TIME_BASE);
+            av_log(ic, AV_LOG_TRACE, "stream %d: start_time: %0.3f duration: %0.3f\n", i,
+                   (double) st->start_time * av_q2d(st->time_base),
+                   (double) st->duration   * av_q2d(st->time_base));
         }
         av_log(ic, AV_LOG_TRACE,
-                "stream: start_time: %0.3f duration: %0.3f bitrate=%"PRId64" kb/s\n",
+                "format: start_time: %0.3f duration: %0.3f bitrate=%"PRId64" kb/s\n",
                 (double) ic->start_time / AV_TIME_BASE,
                 (double) ic->duration   / AV_TIME_BASE,
                 (int64_t)ic->bit_rate / 1000);



More information about the ffmpeg-cvslog mailing list