static int write_trailer(AVFormatContext *s){

    NUTContext *nut= s->priv_data;

    AVIOContext *bc= s->pb;



    while(nut->header_count<3)

        write_headers(s, bc);

    avio_flush(bc);

    ff_nut_free_sp(nut);

    av_freep(&nut->stream);


    av_freep(&nut->time_base);



    return 0;

}
static int write_trailer(AVFormatContext *s){

    NUTContext *nut= s->priv_data;

    AVIOContext *bc= s->pb;



    while(nut->header_count<3)

        write_headers(s, bc);

    avio_flush(bc);

    ff_nut_free_sp(nut);

    av_freep(&nut->stream);


    av_freep(&nut->time_base);



    return 0;

}
static int FUNC_0(AVFormatContext *VAR_0){

    NUTContext *nut= VAR_0->priv_data;

    AVIOContext *bc= VAR_0->pb;



    while(nut->header_count<3)

        write_headers(VAR_0, bc);

    avio_flush(bc);

    ff_nut_free_sp(nut);

    av_freep(&nut->stream);


    av_freep(&nut->time_base);



    return 0;

}
static int FUNC_0(AVFormatContext *VAR_0){ NUTContext *nut= VAR_0->priv_data; AVIOContext *bc= VAR_0->pb; while(nut->header_count<3)
write_headers(VAR_0, bc); avio_flush(bc); ff_nut_free_sp(nut); av_freep(&nut->stream); av_freep(&nut->time_base); return 0; }