static void ts_str(char buffer[60], int64_t ts, AVRational base)

{

    if (ts == AV_NOPTS_VALUE) {

        strcpy(buffer, " NOPTS   ");

        return;

    }

    ts= av_rescale_q(ts, base, (AVRational){1, 1000000});

    snprintf(buffer, 60, "%c%Ld.%06Ld", ts<0 ? '-' : ' ', FFABS(ts)/1000000, FFABS(ts)%1000000);

}

static void ts_str(char buffer[60], int64_t ts, AVRational base)

{

    if (ts == AV_NOPTS_VALUE) {

        strcpy(buffer, " NOPTS   ");

        return;

    }

    ts= av_rescale_q(ts, base, (AVRational){1, 1000000});

    snprintf(buffer, 60, "%c%Ld.%06Ld", ts<0 ? '-' : ' ', FFABS(ts)/1000000, FFABS(ts)%1000000);

}

static void FUNC_0(char VAR_0[60], int64_t VAR_1, AVRational VAR_2)

{

    if (VAR_1 == AV_NOPTS_VALUE) {

        strcpy(VAR_0, " NOPTS   ");

        return;

    }

    VAR_1= av_rescale_q(VAR_1, VAR_2, (AVRational){1, 1000000});

    snprintf(VAR_0, 60, "%c%Ld.%06Ld", VAR_1<0 ? '-' : ' ', FFABS(VAR_1)/1000000, FFABS(VAR_1)%1000000);

}

static void FUNC_0(char VAR_0[60], int64_t VAR_1, AVRational VAR_2)
{ if (VAR_1 == AV_NOPTS_VALUE) { strcpy(VAR_0, " NOPTS   "); return; } VAR_1= av_rescale_q(VAR_1, VAR_2, (AVRational){1, 1000000}); snprintf(VAR_0, 60, "%c%Ld.%06Ld", VAR_1<0 ? '-' : ' ', FFABS(VAR_1)/1000000, FFABS(VAR_1)%1000000); }