static void ini_print_section_header(WriterContext *wctx)

{

    INIContext *ini = wctx->priv;

    AVBPrint buf;

    int i;

    const struct section *section = wctx->section[wctx->level];

    const struct section *parent_section = wctx->level ?

        wctx->section[wctx->level-1] : NULL;



    av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);

    if (wctx->level == 0) {

        printf("# ffprobe output\n\n");

        return;

    }



    if (wctx->nb_item[wctx->level-1])

        printf("\n");



    for (i = 1; i <= wctx->level; i++) {

        if (ini->hierarchical ||

            !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

            av_bprintf(&buf, "%s%s", i>1 ? "." : "", wctx->section[i]->name);

    }



    if (parent_section->flags & SECTION_FLAG_IS_ARRAY) {

        int n = parent_section->id == SECTION_ID_PACKETS_AND_FRAMES ?

            wctx->nb_section_packet_frame : wctx->nb_item[wctx->level-1];

        av_bprintf(&buf, ".%d", n);

    }



    if (!(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

        printf("[%s]\n", buf.str);

    av_bprint_finalize(&buf, NULL);

}

static void ini_print_section_header(WriterContext *wctx)

{

    INIContext *ini = wctx->priv;

    AVBPrint buf;

    int i;

    const struct section *section = wctx->section[wctx->level];

    const struct section *parent_section = wctx->level ?

        wctx->section[wctx->level-1] : NULL;



    av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);

    if (wctx->level == 0) {

        printf("# ffprobe output\n\n");

        return;

    }



    if (wctx->nb_item[wctx->level-1])

        printf("\n");



    for (i = 1; i <= wctx->level; i++) {

        if (ini->hierarchical ||

            !(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

            av_bprintf(&buf, "%s%s", i>1 ? "." : "", wctx->section[i]->name);

    }



    if (parent_section->flags & SECTION_FLAG_IS_ARRAY) {

        int n = parent_section->id == SECTION_ID_PACKETS_AND_FRAMES ?

            wctx->nb_section_packet_frame : wctx->nb_item[wctx->level-1];

        av_bprintf(&buf, ".%d", n);

    }



    if (!(section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

        printf("[%s]\n", buf.str);

    av_bprint_finalize(&buf, NULL);

}

static void FUNC_0(WriterContext *VAR_0)

{

    INIContext *ini = VAR_0->priv;

    AVBPrint buf;

    int VAR_1;

    const struct VAR_2 *VAR_2 = VAR_0->VAR_2[VAR_0->level];

    const struct VAR_2 *VAR_3 = VAR_0->level ?

        VAR_0->VAR_2[VAR_0->level-1] : NULL;



    av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);

    if (VAR_0->level == 0) {

        printf("# ffprobe output\VAR_4\VAR_4");

        return;

    }



    if (VAR_0->nb_item[VAR_0->level-1])

        printf("\VAR_4");



    for (VAR_1 = 1; VAR_1 <= VAR_0->level; VAR_1++) {

        if (ini->hierarchical ||

            !(VAR_2->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

            av_bprintf(&buf, "%s%s", VAR_1>1 ? "." : "", VAR_0->VAR_2[VAR_1]->name);

    }



    if (VAR_3->flags & SECTION_FLAG_IS_ARRAY) {

        int VAR_4 = VAR_3->id == SECTION_ID_PACKETS_AND_FRAMES ?

            VAR_0->nb_section_packet_frame : VAR_0->nb_item[VAR_0->level-1];

        av_bprintf(&buf, ".%d", VAR_4);

    }



    if (!(VAR_2->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))

        printf("[%s]\VAR_4", buf.str);

    av_bprint_finalize(&buf, NULL);

}

static void FUNC_0(WriterContext *VAR_0)
{ INIContext *ini = VAR_0->priv; AVBPrint buf; int VAR_1; const struct VAR_2 *VAR_2 = VAR_0->VAR_2[VAR_0->level]; const struct VAR_2 *VAR_3 = VAR_0->level ?
VAR_0->VAR_2[VAR_0->level-1] : NULL; av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED); if (VAR_0->level == 0) { printf("# ffprobe output\VAR_4\VAR_4"); return; } if (VAR_0->nb_item[VAR_0->level-1])
printf("\VAR_4"); for (VAR_1 = 1; VAR_1 <= VAR_0->level; VAR_1++) { if (ini->hierarchical ||
!(VAR_2->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))
av_bprintf(&buf, "%s%s", VAR_1>1 ? "." : "", VAR_0->VAR_2[VAR_1]->name); } if (VAR_3->flags & SECTION_FLAG_IS_ARRAY) { int VAR_4 = VAR_3->id == SECTION_ID_PACKETS_AND_FRAMES ?
VAR_0->nb_section_packet_frame : VAR_0->nb_item[VAR_0->level-1]; av_bprintf(&buf, ".%d", VAR_4); } if (!(VAR_2->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_IS_WRAPPER)))
printf("[%s]\VAR_4", buf.str); av_bprint_finalize(&buf, NULL); }