Print duration with higher precision.
authorDiego Biurrun <diego@biurrun.de>
Wed, 16 Apr 2008 06:46:54 +0000 (06:46 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 16 Apr 2008 06:46:54 +0000 (06:46 +0000)
patch from HervĂ© Flores, herve.flores free fr

Originally committed as revision 12847 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 55b9fba..c4f67c9 100644 (file)
@@ -2634,8 +2634,8 @@ void dump_format(AVFormatContext *ic,
             secs %= 60;
             hours = mins / 60;
             mins %= 60;
-            av_log(NULL, AV_LOG_INFO, "%02d:%02d:%02d.%01d", hours, mins, secs,
-                   (10 * us) / AV_TIME_BASE);
+            av_log(NULL, AV_LOG_INFO, "%02d:%02d:%02d.%02d", hours, mins, secs,
+                   (100 * us) / AV_TIME_BASE);
         } else {
             av_log(NULL, AV_LOG_INFO, "N/A");
         }