avoid nonsense frame-skip messages

Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 23 years ago
parent df266acdec
commit 7727783512
  1. 2
      libavcodec/h263dec.c

@ -121,7 +121,7 @@ static int get_consumed_bytes(MpegEncContext *s, int buf_size){
return buf_size;
}else{
if(pos==0) pos=1; //avoid infinite loops (i doubt thats needed but ...)
if(pos>buf_size) pos=buf_size; // oops ;)
if(pos+10>buf_size) pos=buf_size; // oops ;)
return pos;
}

Loading…
Cancel
Save