changeset 3390:63a4adcaf226 libavcodec

3 lines while -> 1 line for loop
author michael
date Sun, 02 Jul 2006 13:14:04 +0000
parents de8cdb05117f
children d60dc0a7dee6
files flacenc.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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;
 }