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

infinte recursion fix

Originally committed as revision 3606 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 daed32f7
......@@ -843,7 +843,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){
assert(b >=0);
assert(rnd >=0 && rnd<=5 && rnd!=4);
if(a<0) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));
if(a<0 && a != INT64_MIN) return -av_rescale_rnd(-a, b, c, rnd ^ ((rnd>>1)&1));
if(rnd==AV_ROUND_NEAR_INF) r= c/2;
else if(rnd&1) r= c-1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册