diff options
author | Michael Niedermayer | 2006-07-02 13:14:04 +0000 |
---|---|---|
committer | Michael Niedermayer | 2006-07-02 13:14:04 +0000 |
commit | 474176bf927870168a20413f2a9c28f09b6b1afa (patch) | |
tree | d13056a2e17493ba4a7483723993ac1e97badbb5 /libavcodec/flacenc.c | |
parent | 5d2f52b98980fd49c3d1f35a742912f7952262b0 (diff) |
3 lines while -> 1 line for loop
Originally committed as revision 5577 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 1a06cd07bb..adaaee4a16 100644 --- a/libavcodec/flacenc.c +++ b/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; } |