changeset 5073:d12405ae17b0 libavcodec

cosmetics (reduce nesting)
author lorenm
date Thu, 24 May 2007 19:04:19 +0000
parents 1aec7fab94c4
children cf4a58988e6e
files huffyuv.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Thu May 24 17:40:02 2007 +0000
+++ b/huffyuv.c	Thu May 24 19:04:19 2007 +0000
@@ -329,17 +329,17 @@
             for(i=y=0; y<256; y++){
                 int len0 = s->len[0][y];
                 int limit = VLC_BITS - len0;
-                if(limit > 0){
-                    for(u=0; u<256; u++){
-                        int len1 = s->len[p][u];
-                        if(len1 <= limit){
-                            len[i] = len0 + len1;
-                            bits[i] = (s->bits[0][y] << len1) + s->bits[p][u];
-                            symbols[i] = (y<<8) + u;
-                            if(symbols[i] != 0xffff) // reserved to mean "invalid"
-                                i++;
-                        }
-                    }
+                if(limit <= 0)
+                    continue;
+                for(u=0; u<256; u++){
+                    int len1 = s->len[p][u];
+                    if(len1 > limit)
+                        continue;
+                    len[i] = len0 + len1;
+                    bits[i] = (s->bits[0][y] << len1) + s->bits[p][u];
+                    symbols[i] = (y<<8) + u;
+                    if(symbols[i] != 0xffff) // reserved to mean "invalid"
+                        i++;
                 }
             }
             free_vlc(&s->vlc[3+p]);