1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avoid nonsense frame-skip messages

Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2002-09-12 15:00:09 +00:00
parent df266acdec
commit 7727783512

View File

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