[FFmpeg-devel] [PATCH/RFC]Fix av_timegm with icc 13.1

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 7 14:51:11 CET 2013


Hi!

Attached patch fixes fate with icc 13.1.

Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 494801e..1d94df4 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -519,8 +519,8 @@ time_t av_timegm(struct tm *tm)
         y--;
     }
 
-    t = 86400 *
-        (d + (153 * m - 457) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 719469);
+    t = d + (153 * m - 457) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 719469;
+    t *= 86400;
 
     t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
 


More information about the ffmpeg-devel mailing list