static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
{
    struct tm time = { 0 };
    time.tm_year = (timestamp >> 48) - 1900;
    time.tm_mon  = (timestamp >> 40 & 0xFF) - 1;
    time.tm_mday = (timestamp >> 32 & 0xFF);
    time.tm_hour = (timestamp >> 24 & 0xFF);
    time.tm_min  = (timestamp >> 16 & 0xFF);
    time.tm_sec  = (timestamp >> 8  & 0xFF);
    *str = av_mallocz(32);
    if (!*str)
        return AVERROR(ENOMEM);
    strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time);
    return 0;
}
static int mxf_timestamp_to_str(uint64_t timestamp, char **str)
{
    struct tm time = { 0 };
    time.tm_year = (timestamp >> 48) - 1900;
    time.tm_mon  = (timestamp >> 40 & 0xFF) - 1;
    time.tm_mday = (timestamp >> 32 & 0xFF);
    time.tm_hour = (timestamp >> 24 & 0xFF);
    time.tm_min  = (timestamp >> 16 & 0xFF);
    time.tm_sec  = (timestamp >> 8  & 0xFF);
    *str = av_mallocz(32);
    if (!*str)
        return AVERROR(ENOMEM);
    strftime(*str, 32, "%Y-%m-%d %H:%M:%S", &time);
    return 0;
}
static int FUNC_0(uint64_t VAR_0, char **VAR_1)
{
    struct tm VAR_2 = { 0 };
    VAR_2.tm_year = (VAR_0 >> 48) - 1900;
    VAR_2.tm_mon  = (VAR_0 >> 40 & 0xFF) - 1;
    VAR_2.tm_mday = (VAR_0 >> 32 & 0xFF);
    VAR_2.tm_hour = (VAR_0 >> 24 & 0xFF);
    VAR_2.tm_min  = (VAR_0 >> 16 & 0xFF);
    VAR_2.tm_sec  = (VAR_0 >> 8  & 0xFF);
    *VAR_1 = av_mallocz(32);
    if (!*VAR_1)
        return AVERROR(ENOMEM);
    strftime(*VAR_1, 32, "%Y-%m-%d %H:%M:%S", &VAR_2);
    return 0;
}
static int FUNC_0(uint64_t VAR_0, char **VAR_1)
{ struct tm VAR_2 = { 0 }; VAR_2.tm_year = (VAR_0 >> 48) - 1900; VAR_2.tm_mon  = (VAR_0 >> 40 & 0xFF) - 1; VAR_2.tm_mday = (VAR_0 >> 32 & 0xFF); VAR_2.tm_hour = (VAR_0 >> 24 & 0xFF); VAR_2.tm_min  = (VAR_0 >> 16 & 0xFF); VAR_2.tm_sec  = (VAR_0 >> 8  & 0xFF); *VAR_1 = av_mallocz(32); if (!*VAR_1)
return AVERROR(ENOMEM); strftime(*VAR_1, 32, "%Y-%m-%d %H:%M:%S", &VAR_2); return 0; }