Revision 6dc7dc08

View differences:

libavformat/mxfenc.c
1379 1379
static uint64_t mxf_parse_timestamp(time_t timestamp)
1380 1380
{
1381 1381
    struct tm *time = gmtime(&timestamp);
1382
    if (!time)
1383
        return 0;
1382 1384
    return (uint64_t)(time->tm_year+1900) << 48 |
1383 1385
           (uint64_t)(time->tm_mon+1)     << 40 |
1384 1386
           (uint64_t) time->tm_mday       << 32 |

Also available in: Unified diff