Commit 96b36056 authored by lorenm's avatar lorenm

cosmetics (reduce nesting)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9119 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d1aee487
......@@ -329,10 +329,12 @@ 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){
if(limit <= 0)
continue;
for(u=0; u<256; u++){
int len1 = s->len[p][u];
if(len1 <= limit){
if(len1 > limit)
continue;
len[i] = len0 + len1;
bits[i] = (s->bits[0][y] << len1) + s->bits[p][u];
symbols[i] = (y<<8) + u;
......@@ -340,8 +342,6 @@ static void generate_joint_tables(HYuvContext *s){
i++;
}
}
}
}
free_vlc(&s->vlc[3+p]);
init_vlc_sparse(&s->vlc[3+p], VLC_BITS, i, len, 1, 1, bits, 2, 2, symbols, 2, 2, 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment