void ff_h264_remove_all_refs(H264Context *h)

{

    int i;



    for (i = 0; i < 16; i++) {

        remove_long(h, i, 0);

    }

    assert(h->long_ref_count == 0);



    if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) {

        ff_h264_unref_picture(h, &h->last_pic_for_ec);

        if (h->short_ref[0]->f->buf[0])

            ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);

    }



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

        unreference_pic(h, h->short_ref[i], 0);

        h->short_ref[i] = NULL;

    }

    h->short_ref_count = 0;



    memset(h->default_ref, 0, sizeof(h->default_ref));

}

void ff_h264_remove_all_refs(H264Context *h)

{

    int i;



    for (i = 0; i < 16; i++) {

        remove_long(h, i, 0);

    }

    assert(h->long_ref_count == 0);



    if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) {

        ff_h264_unref_picture(h, &h->last_pic_for_ec);

        if (h->short_ref[0]->f->buf[0])

            ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);

    }



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

        unreference_pic(h, h->short_ref[i], 0);

        h->short_ref[i] = NULL;

    }

    h->short_ref_count = 0;



    memset(h->default_ref, 0, sizeof(h->default_ref));

}

        if (h->short_ref[0]->f->buf[0])             ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);
void FUNC_0(H264Context *VAR_0)

{

    int VAR_1;



    for (VAR_1 = 0; VAR_1 < 16; VAR_1++) {

        remove_long(VAR_0, VAR_1, 0);

    }

    assert(VAR_0->long_ref_count == 0);



    if (VAR_0->short_ref_count && !VAR_0->last_pic_for_ec.f->data[0]) {

        ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec);

        if (VAR_0->short_ref[0]->f->buf[0])

            ff_h264_ref_picture(VAR_0, &VAR_0->last_pic_for_ec, VAR_0->short_ref[0]);

    }



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

        unreference_pic(VAR_0, VAR_0->short_ref[VAR_1], 0);

        VAR_0->short_ref[VAR_1] = NULL;

    }

    VAR_0->short_ref_count = 0;



    memset(VAR_0->default_ref, 0, sizeof(VAR_0->default_ref));

}

void FUNC_0(H264Context *VAR_0)
{ int VAR_1; for (VAR_1 = 0; VAR_1 < 16; VAR_1++) { remove_long(VAR_0, VAR_1, 0); } assert(VAR_0->long_ref_count == 0); if (VAR_0->short_ref_count && !VAR_0->last_pic_for_ec.f->data[0]) { ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec); if (VAR_0->short_ref[0]->f->buf[0])
ff_h264_ref_picture(VAR_0, &VAR_0->last_pic_for_ec, VAR_0->short_ref[0]); } for (VAR_1 = 0; VAR_1 < VAR_0->short_ref_count; VAR_1++) { unreference_pic(VAR_0, VAR_0->short_ref[VAR_1], 0); VAR_0->short_ref[VAR_1] = NULL; } VAR_0->short_ref_count = 0; memset(VAR_0->default_ref, 0, sizeof(VAR_0->default_ref)); }