diff options
author | Peter Ross <pross@xvid.org> | 2011-05-08 20:14:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-09 02:25:40 +0200 |
commit | fddf0521c6aca3eef25695094da6d12cb9af183d (patch) | |
tree | 6f63fd3883af4301b066f4c5ce4cb6d0e8f334c1 | |
parent | 8acab7ae5bbcb589c556425453ac3d851d35021f (diff) | |
download | ffmpeg-fddf0521c6aca3eef25695094da6d12cb9af183d.tar.gz |
wtv: calculate ole date correctly (is seconds since 1899-12-30)
-rw-r--r-- | libavformat/wtvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 19d5b54ce0..640a6f14f2 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -402,7 +402,7 @@ static void crazytime_to_iso8601(char *buf, int buf_size, int64_t value) */ static int oledate_to_iso8601(char *buf, int buf_size, int64_t value) { - time_t t = 631112400LL + 86400*av_int2dbl(value); + time_t t = (av_int2dbl(value) - 25569.0) * 86400; struct tm result; if (!gmtime_r(&t, &result)) return -1; |