Revision 25308afb

View differences:

libavformat/wtvdec.c
403 403
static int oledate_to_iso8601(char *buf, int buf_size, int64_t value)
404 404
{
405 405
    time_t t = (av_int2dbl(value) - 25569.0) * 86400;
406
    struct tm result;
407
    if (!gmtime_r(&t, &result))
406
    struct tm *result= gmtime(&t);
407
    if (!result)
408 408
        return -1;
409
    strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", &result);
409
    strftime(buf, buf_size, "%Y-%m-%d %H:%M:%S", result);
410 410
    return 0;
411 411
}
412 412

  

Also available in: Unified diff