提交 77277835 编写于 作者: M Michael Niedermayer

avoid nonsense frame-skip messages

Originally committed as revision 929 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 df266acd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册