void ff_h264_flush_change(H264Context *h)

{

    int i, j;



    h->next_outputed_poc = INT_MIN;

    h->prev_interlaced_frame = 1;

    idr(h);



    h->poc.prev_frame_num = -1;

    if (h->cur_pic_ptr) {

        h->cur_pic_ptr->reference = 0;

        for (j=i=0; h->delayed_pic[i]; i++)

            if (h->delayed_pic[i] != h->cur_pic_ptr)

                h->delayed_pic[j++] = h->delayed_pic[i];

        h->delayed_pic[j] = NULL;

    }

    ff_h264_unref_picture(h, &h->last_pic_for_ec);



    h->first_field = 0;

    ff_h264_sei_uninit(&h->sei);

    h->recovery_frame = -1;

    h->frame_recovered = 0;

    h->current_slice = 0;

    h->mmco_reset = 1;

    for (i = 0; i < h->nb_slice_ctx; i++)

        h->slice_ctx[i].list_count = 0;

}

void ff_h264_flush_change(H264Context *h)

{

    int i, j;



    h->next_outputed_poc = INT_MIN;

    h->prev_interlaced_frame = 1;

    idr(h);



    h->poc.prev_frame_num = -1;

    if (h->cur_pic_ptr) {

        h->cur_pic_ptr->reference = 0;

        for (j=i=0; h->delayed_pic[i]; i++)

            if (h->delayed_pic[i] != h->cur_pic_ptr)

                h->delayed_pic[j++] = h->delayed_pic[i];

        h->delayed_pic[j] = NULL;

    }

    ff_h264_unref_picture(h, &h->last_pic_for_ec);



    h->first_field = 0;

    ff_h264_sei_uninit(&h->sei);

    h->recovery_frame = -1;

    h->frame_recovered = 0;

    h->current_slice = 0;

    h->mmco_reset = 1;

    for (i = 0; i < h->nb_slice_ctx; i++)

        h->slice_ctx[i].list_count = 0;

}

    for (i = 0; i < h->nb_slice_ctx; i++)         h->slice_ctx[i].list_count = 0;
void FUNC_0(H264Context *VAR_0)

{

    int VAR_1, VAR_2;



    VAR_0->next_outputed_poc = INT_MIN;

    VAR_0->prev_interlaced_frame = 1;

    idr(VAR_0);



    VAR_0->poc.prev_frame_num = -1;

    if (VAR_0->cur_pic_ptr) {

        VAR_0->cur_pic_ptr->reference = 0;

        for (VAR_2=VAR_1=0; VAR_0->delayed_pic[VAR_1]; VAR_1++)

            if (VAR_0->delayed_pic[VAR_1] != VAR_0->cur_pic_ptr)

                VAR_0->delayed_pic[VAR_2++] = VAR_0->delayed_pic[VAR_1];

        VAR_0->delayed_pic[VAR_2] = NULL;

    }

    ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec);



    VAR_0->first_field = 0;

    ff_h264_sei_uninit(&VAR_0->sei);

    VAR_0->recovery_frame = -1;

    VAR_0->frame_recovered = 0;

    VAR_0->current_slice = 0;

    VAR_0->mmco_reset = 1;

    for (VAR_1 = 0; VAR_1 < VAR_0->nb_slice_ctx; VAR_1++)

        VAR_0->slice_ctx[VAR_1].list_count = 0;

}

void FUNC_0(H264Context *VAR_0)
{ int VAR_1, VAR_2; VAR_0->next_outputed_poc = INT_MIN; VAR_0->prev_interlaced_frame = 1; idr(VAR_0); VAR_0->poc.prev_frame_num = -1; if (VAR_0->cur_pic_ptr) { VAR_0->cur_pic_ptr->reference = 0; for (VAR_2=VAR_1=0; VAR_0->delayed_pic[VAR_1]; VAR_1++) if (VAR_0->delayed_pic[VAR_1] != VAR_0->cur_pic_ptr)
VAR_0->delayed_pic[VAR_2++] = VAR_0->delayed_pic[VAR_1]; VAR_0->delayed_pic[VAR_2] = NULL; } ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec); VAR_0->first_field = 0; ff_h264_sei_uninit(&VAR_0->sei); VAR_0->recovery_frame = -1; VAR_0->frame_recovered = 0; VAR_0->current_slice = 0; VAR_0->mmco_reset = 1; for (VAR_1 = 0; VAR_1 < VAR_0->nb_slice_ctx; VAR_1++) VAR_0->slice_ctx[VAR_1].list_count = 0; }