提交 474176bf 编写于 作者: M Michael Niedermayer

3 lines while -> 1 line for loop

Originally committed as revision 5577 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 5d2f52b9
......@@ -788,13 +788,11 @@ static int get_max_p_order(int max_porder, int n, int order)
{
int porder, max_parts;
porder = max_porder;
while(porder > 0) {
for(porder = max_porder; porder > 0; porder--) {
max_parts = (1 << porder);
if(!(n % max_parts) && (n > max_parts*order)) {
break;
}
porder--;
}
return porder;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册