[FFmpeg-cvslog] Force using a 64bit intermediate when calculating calendar time with av_timegm ().

Carl Eugen Hoyos git at videolan.org
Fri Mar 8 03:40:23 CET 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Mar  8 02:42:33 2013 +0100| [de4811e9108c0d26b337b7e89c9c65029acf92b9] | committer: Carl Eugen Hoyos

Force using a 64bit intermediate when calculating calendar time with av_timegm().

Fixes a fate failure with icc 13.1

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

 libavutil/parseutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 494801e..f2f8f18 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -519,7 +519,7 @@ time_t av_timegm(struct tm *tm)
         y--;
     }
 
-    t = 86400 *
+    t = 86400LL *
         (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-cvslog mailing list