comparison h263dec.c @ 658:dc8df8792a24 libavcodec

avoid nonsense frame-skip messages
author michaelni
date Thu, 12 Sep 2002 15:00:09 +0000
parents 8de2081a39ab
children b4bddbde44f3
comparison
equal deleted inserted replaced
657:8de2081a39ab 658:dc8df8792a24
119 if(s->divx_version>=500){ 119 if(s->divx_version>=500){
120 //we would have to scan through the whole buf to handle the weird reordering ... 120 //we would have to scan through the whole buf to handle the weird reordering ...
121 return buf_size; 121 return buf_size;
122 }else{ 122 }else{
123 if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...) 123 if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
124 if(pos>buf_size) pos=buf_size; // oops ;) 124 if(pos+10>buf_size) pos=buf_size; // oops ;)
125 125
126 return pos; 126 return pos;
127 } 127 }
128 } 128 }
129 129