static int webm_dash_manifest_write_header(AVFormatContext *s)

{

    int i;

    double start = 0.0;

    WebMDashMuxContext *w = s->priv_data;

    parse_adaptation_sets(s);

    write_header(s);

    avio_printf(s->pb, "<Period id=\"0\"");

    avio_printf(s->pb, " start=\"PT%gS\"", start);

    if (!w->is_live) {

        avio_printf(s->pb, " duration=\"PT%gS\"", get_duration(s));

    }

    avio_printf(s->pb, " >\n");



    for (i = 0; i < w->nb_as; i++) {

        if (write_adaptation_set(s, i) < 0) return -1;

    }



    avio_printf(s->pb, "</Period>\n");

    write_footer(s);

    return 0;

}

static int webm_dash_manifest_write_header(AVFormatContext *s)

{

    int i;

    double start = 0.0;

    WebMDashMuxContext *w = s->priv_data;

    parse_adaptation_sets(s);

    write_header(s);

    avio_printf(s->pb, "<Period id=\"0\"");

    avio_printf(s->pb, " start=\"PT%gS\"", start);

    if (!w->is_live) {

        avio_printf(s->pb, " duration=\"PT%gS\"", get_duration(s));

    }

    avio_printf(s->pb, " >\n");



    for (i = 0; i < w->nb_as; i++) {

        if (write_adaptation_set(s, i) < 0) return -1;

    }



    avio_printf(s->pb, "</Period>\n");

    write_footer(s);

    return 0;

}

    parse_adaptation_sets(s);         if (write_adaptation_set(s, i) < 0) return -1;     WebMDashMuxContext *w = s->priv_data;     int i;     for (i = 0; i < w->nb_as; i++) {
static int FUNC_0(AVFormatContext *VAR_0)

{

    int VAR_1;

    double VAR_2 = 0.0;

    WebMDashMuxContext *w = VAR_0->priv_data;

    parse_adaptation_sets(VAR_0);

    write_header(VAR_0);

    avio_printf(VAR_0->pb, "<Period id=\"0\"");

    avio_printf(VAR_0->pb, " VAR_2=\"PT%gS\"", VAR_2);

    if (!w->is_live) {

        avio_printf(VAR_0->pb, " duration=\"PT%gS\"", get_duration(VAR_0));

    }

    avio_printf(VAR_0->pb, " >\n");



    for (VAR_1 = 0; VAR_1 < w->nb_as; VAR_1++) {

        if (write_adaptation_set(VAR_0, VAR_1) < 0) return -1;

    }



    avio_printf(VAR_0->pb, "</Period>\n");

    write_footer(VAR_0);

    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0)
{ int VAR_1; double VAR_2 = 0.0; WebMDashMuxContext *w = VAR_0->priv_data; parse_adaptation_sets(VAR_0); write_header(VAR_0); avio_printf(VAR_0->pb, "<Period id=\"0\""); avio_printf(VAR_0->pb, " VAR_2=\"PT%gS\"", VAR_2); if (!w->is_live) { avio_printf(VAR_0->pb, " duration=\"PT%gS\"", get_duration(VAR_0)); } avio_printf(VAR_0->pb, " >\n"); for (VAR_1 = 0; VAR_1 < w->nb_as; VAR_1++) { if (write_adaptation_set(VAR_0, VAR_1) < 0) return -1; } avio_printf(VAR_0->pb, "</Period>\n"); write_footer(VAR_0); return 0; }