Commit 1e239dfe authored by michael's avatar michael

3 lines while -> 1 line for loop


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5577 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 43a25746
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment