static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration)

{

    if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) {

        writer_print_string(wctx, key, "N/A", 1);

    } else {

        writer_print_integer(wctx, key, ts);

    }

}

static void writer_print_ts(WriterContext *wctx, const char *key, int64_t ts, int is_duration)

{

    if ((!is_duration && ts == AV_NOPTS_VALUE) || (is_duration && ts == 0)) {

        writer_print_string(wctx, key, "N/A", 1);

    } else {

        writer_print_integer(wctx, key, ts);

    }

}

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

{

    if ((!VAR_3 && VAR_2 == AV_NOPTS_VALUE) || (VAR_3 && VAR_2 == 0)) {

        writer_print_string(VAR_0, VAR_1, "N/A", 1);

    } else {

        writer_print_integer(VAR_0, VAR_1, VAR_2);

    }

}

static void FUNC_0(WriterContext *VAR_0, const char *VAR_1, int64_t VAR_2, int VAR_3)
{ if ((!VAR_3 && VAR_2 == AV_NOPTS_VALUE) || (VAR_3 && VAR_2 == 0)) { writer_print_string(VAR_0, VAR_1, "N/A", 1); } else { writer_print_integer(VAR_0, VAR_1, VAR_2); } }