void ff_release_unused_pictures(MpegEncContext *s, int remove_current)

{

    int i;



    /* release non reference frames */

    for(i=0; i<s->picture_count; i++){

        if(s->picture[i].data[0] && !s->picture[i].reference

           && s->picture[i].owner2 == s

           && (remove_current || &s->picture[i] != s->current_picture_ptr)

           /*&& s->picture[i].type!=FF_BUFFER_TYPE_SHARED*/){

            free_frame_buffer(s, &s->picture[i]);

        }

    }

}

void ff_release_unused_pictures(MpegEncContext *s, int remove_current)

{

    int i;



    

    for(i=0; i<s->picture_count; i++){

        if(s->picture[i].data[0] && !s->picture[i].reference

           && s->picture[i].owner2 == s

           && (remove_current || &s->picture[i] != s->current_picture_ptr)

           ){

            free_frame_buffer(s, &s->picture[i]);

        }

    }

}

           && s->picture[i].owner2 == s
void FUNC_0(MpegEncContext *VAR_0, int VAR_1)

{

    int VAR_2;



    

    for(VAR_2=0; VAR_2<VAR_0->picture_count; VAR_2++){

        if(VAR_0->picture[VAR_2].data[0] && !VAR_0->picture[VAR_2].reference

           && VAR_0->picture[VAR_2].owner2 == VAR_0

           && (VAR_1 || &VAR_0->picture[VAR_2] != VAR_0->current_picture_ptr)

           ){

            free_frame_buffer(VAR_0, &VAR_0->picture[VAR_2]);

        }

    }

}

void FUNC_0(MpegEncContext *VAR_0, int VAR_1)
{ int VAR_2; for(VAR_2=0; VAR_2<VAR_0->picture_count; VAR_2++){ if(VAR_0->picture[VAR_2].data[0] && !VAR_0->picture[VAR_2].reference
&& VAR_0->picture[VAR_2].owner2 == VAR_0
&& (VAR_1 || &VAR_0->picture[VAR_2] != VAR_0->current_picture_ptr)
){ free_frame_buffer(VAR_0, &VAR_0->picture[VAR_2]); } } }