diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-09 04:17:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-09 04:17:24 +0200 |
commit | 25308afbb2f7d6d9cb1e36476bc5aa0b3831c703 (patch) | |
tree | 5090fca8f3907d6cd879617aa56106f39e04b4d9 | |
parent | bce0d92359176ba57c75f9018747a78d94f62f5f (diff) | |
download | ffmpeg-streaming-25308afbb2f7d6d9cb1e36476bc5aa0b3831c703.zip ffmpeg-streaming-25308afbb2f7d6d9cb1e36476bc5aa0b3831c703.tar.gz |
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>
-rw-r--r-- | libavformat/wtvdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 640a6f1..5cbec05 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -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; } |