aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorLoren Merritt2007-05-24 19:04:19 +0000
committerLoren Merritt2007-05-24 19:04:19 +0000
commitf45fcba303cdeb4db8e31d2abfbbc64486b1c24c (patch)
tree738937f37e846bf39c498e031f02dd29ef47c8e8 /libavcodec
parentacc0e0c8b64d0c271d6f74aa36f8d6914c305393 (diff)
cosmetics (reduce nesting)
Originally committed as revision 9119 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/huffyuv.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c
index 12122c80a5..ca5609b88e 100644
--- a/libavcodec/huffyuv.c
+++ b/libavcodec/huffyuv.c
@@ -329,17 +329,17 @@ static void generate_joint_tables(HYuvContext *s){
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]);