static char *time_value_string(char *buf, int buf_size, int64_t val, const AVRational *time_base)

{

    if (val == AV_NOPTS_VALUE) {

        snprintf(buf, buf_size, "N/A");

    } else {

        double d = val * av_q2d(*time_base);

        value_string(buf, buf_size, (struct unit_value){.val.d=d, .unit=unit_second_str});

    }



    return buf;

}

static char *time_value_string(char *buf, int buf_size, int64_t val, const AVRational *time_base)

{

    if (val == AV_NOPTS_VALUE) {

        snprintf(buf, buf_size, "N/A");

    } else {

        double d = val * av_q2d(*time_base);

        value_string(buf, buf_size, (struct unit_value){.val.d=d, .unit=unit_second_str});

    }



    return buf;

}

static char *FUNC_0(char *VAR_0, int VAR_1, int64_t VAR_2, const AVRational *VAR_3)

{

    if (VAR_2 == AV_NOPTS_VALUE) {

        snprintf(VAR_0, VAR_1, "N/A");

    } else {

        double VAR_4 = VAR_2 * av_q2d(*VAR_3);

        value_string(VAR_0, VAR_1, (struct unit_value){.VAR_2.VAR_4=VAR_4, .unit=unit_second_str});

    }



    return VAR_0;

}

static char *FUNC_0(char *VAR_0, int VAR_1, int64_t VAR_2, const AVRational *VAR_3)
{ if (VAR_2 == AV_NOPTS_VALUE) { snprintf(VAR_0, VAR_1, "N/A"); } else { double VAR_4 = VAR_2 * av_q2d(*VAR_3); value_string(VAR_0, VAR_1, (struct unit_value){.VAR_2.VAR_4=VAR_4, .unit=unit_second_str}); } return VAR_0; }