for(i=0; i<3; i++)
for(i=0; i<s->internal_buffer_count; i++){ buf= &((InternalBuffer*)s->internal_buffer)[i]; if(buf->data[0] == pic->data[0]) break; } assert(i < s->internal_buffer_count); s->internal_buffer_count--; last = &((InternalBuffer*)s->internal_buffer)[s->internal_buffer_count];  temp= *buf; *buf= *last; *last= temp;  for(i=0; i<3; i++){
void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){    int i;        assert(pic->type==FF_BUFFER_TYPE_INTERNAL);        for(i=0; i<3; i++)        pic->data[i]=NULL;//printf("R%X\n", pic->opaque);}