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:
parent
df266acdec
commit
7727783512
@ -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…
Reference in New Issue
Block a user