Mercurial > libavcodec.hg
diff flacenc.c @ 3390:63a4adcaf226 libavcodec
3 lines while -> 1 line for loop
author | michael |
---|---|
date | Sun, 02 Jul 2006 13:14:04 +0000 |
parents | de8cdb05117f |
children | bdfc530c417c |
line wrap: on
line diff
--- a/flacenc.c Sun Jul 02 13:10:08 2006 +0000 +++ b/flacenc.c Sun Jul 02 13:14:04 2006 +0000 @@ -788,13 +788,11 @@ { 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; }