[FFmpeg-cvslog] r25063 - trunk/libavformat/utils.c

cehoyos subversion
Tue Sep 7 23:06:21 CEST 2010


Author: cehoyos
Date: Tue Sep  7 23:06:21 2010
New Revision: 25063

Log:
Fix formatting for negative start times (issue 2139).

Patch by Christian d'Heureuse, chdh inventec ch

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Tue Sep  7 22:46:29 2010	(r25062)
+++ trunk/libavformat/utils.c	Tue Sep  7 23:06:21 2010	(r25063)
@@ -3135,7 +3135,7 @@ void dump_format(AVFormatContext *ic,
             int secs, us;
             av_log(NULL, AV_LOG_INFO, ", start: ");
             secs = ic->start_time / AV_TIME_BASE;
-            us = ic->start_time % AV_TIME_BASE;
+            us = abs(ic->start_time % AV_TIME_BASE);
             av_log(NULL, AV_LOG_INFO, "%d.%06d",
                    secs, (int)av_rescale(us, 1000000, AV_TIME_BASE));
         }



More information about the ffmpeg-cvslog mailing list