Revision fddf0521 libavformat/wtvdec.c

View differences:

libavformat/wtvdec.c
402 402
 */
403 403
static int oledate_to_iso8601(char *buf, int buf_size, int64_t value)
404 404
{
405
    time_t t = 631112400LL + 86400*av_int2dbl(value);
405
    time_t t = (av_int2dbl(value) - 25569.0) * 86400;
406 406
    struct tm result;
407 407
    if (!gmtime_r(&t, &result))
408 408
        return -1;

Also available in: Unified diff