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

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 7 19:50:26 CET 2013


On Thursday 07 March 2013 02:51:11 pm Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes fate with icc 13.1.

Alternative patch attached.

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


More information about the ffmpeg-devel mailing list