3 lines while -> 1 line for loop

Originally committed as revision 5577 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 19 years ago
parent 5d2f52b989
commit 474176bf92
  1. 4
      libavcodec/flacenc.c

@ -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;
}

Loading…
Cancel
Save