Browse Source

wtvdec: Avoid gmtime_r() it breaks compile on windows.

Better solutions welcome, this is just a quick fix to unbreak compile.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
25308afbb2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/wtvdec.c

+ 3
- 3
libavformat/wtvdec.c View File

@@ -403,10 +403,10 @@ 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 = (av_int2dbl(value) - 25569.0) * 86400;
struct tm result;
if (!gmtime_r(&t, &result))
struct tm *result= gmtime(&t);
if (!result)
return -1;
strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", &result);
strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", result);
return 0;
}



Loading…
Cancel
Save