static int segment_end(AVFormatContext *oc, int write_trailer)

{

    int ret = 0;



    av_write_frame(oc, NULL); /* Flush any buffered data (fragmented mp4) */

    if (write_trailer)

        av_write_trailer(oc);

    avio_close(oc->pb);



    return ret;

}

static int segment_end(AVFormatContext *oc, int write_trailer)

{

    int ret = 0;



    av_write_frame(oc, NULL); 

    if (write_trailer)

        av_write_trailer(oc);

    avio_close(oc->pb);



    return ret;

}

static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)

{

    int VAR_2 = 0;



    av_write_frame(VAR_0, NULL); 

    if (VAR_1)

        av_write_trailer(VAR_0);

    avio_close(VAR_0->pb);



    return VAR_2;

}

static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)
{ int VAR_2 = 0; av_write_frame(VAR_0, NULL); if (VAR_1)
av_write_trailer(VAR_0); avio_close(VAR_0->pb); return VAR_2; }