Browse Source

wtv: calculate ole date correctly (is seconds since 1899-12-30)

tags/n0.8
Peter Ross Michael Niedermayer 14 years ago
parent
commit
fddf0521c6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/wtvdec.c

+ 1
- 1
libavformat/wtvdec.c View File

@@ -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;


Loading…
Cancel
Save