static void json_print_chapter_header(WriterContext *wctx, const char *chapter)

{

    JSONContext *json = wctx->priv;

    char *chapter_esc;



    if (wctx->nb_chapter)

        printf(",");

    json->multiple_entries = !strcmp(chapter, "packets") || !strcmp(chapter, "streams");

    chapter_esc = json_escape_str(chapter);

    printf("\n  \"%s\":%s", chapter_esc ? chapter_esc : "",

           json->multiple_entries ? " [" : " ");

    av_free(chapter_esc);

}

static void json_print_chapter_header(WriterContext *wctx, const char *chapter)

{

    JSONContext *json = wctx->priv;

    char *chapter_esc;



    if (wctx->nb_chapter)

        printf(",");

    json->multiple_entries = !strcmp(chapter, "packets") || !strcmp(chapter, "streams");

    chapter_esc = json_escape_str(chapter);

    printf("\n  \"%s\":%s", chapter_esc ? chapter_esc : "",

           json->multiple_entries ? " [" : " ");

    av_free(chapter_esc);

}

    char *chapter_esc;     chapter_esc = json_escape_str(chapter);     printf("\n  \"%s\":%s", chapter_esc ? chapter_esc : "",     av_free(chapter_esc);
static void FUNC_0(WriterContext *VAR_0, const char *VAR_1)

{

    JSONContext *json = VAR_0->priv;

    char *VAR_2;



    if (VAR_0->nb_chapter)

        printf(",");

    json->multiple_entries = !strcmp(VAR_1, "packets") || !strcmp(VAR_1, "streams");

    VAR_2 = json_escape_str(VAR_1);

    printf("\n  \"%s\":%s", VAR_2 ? VAR_2 : "",

           json->multiple_entries ? " [" : " ");

    av_free(VAR_2);

}

static void FUNC_0(WriterContext *VAR_0, const char *VAR_1)
{ JSONContext *json = VAR_0->priv; char *VAR_2; if (VAR_0->nb_chapter)
printf(","); json->multiple_entries = !strcmp(VAR_1, "packets") || !strcmp(VAR_1, "streams"); VAR_2 = json_escape_str(VAR_1); printf("\n  \"%s\":%s", VAR_2 ? VAR_2 : "",
json->multiple_entries ? " [" : " "); av_free(VAR_2); }