diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-03-08 02:42:33 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-03-08 02:42:33 +0100 |
commit | de4811e9108c0d26b337b7e89c9c65029acf92b9 (patch) | |
tree | 4a535405656dcdb9502d58ba5919294ff5130f62 | |
parent | d30ee5ef59d365cf356694cc25b8099c97618a11 (diff) | |
download | ffmpeg-de4811e9108c0d26b337b7e89c9c65029acf92b9.tar.gz |
Force using a 64bit intermediate when calculating calendar time with av_timegm().
Fixes a fate failure with icc 13.1
-rw-r--r-- | libavutil/parseutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c index 494801e2de..f2f8f18437 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; |