mirror of https://git.ffmpeg.org/ffmpeg.git
avoid nonsense frame-skip messages
Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
df266acdec
commit
7727783512
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue