# HG changeset patch # User michael # Date 1230059570 0 # Node ID 2f25133ab80737aa61c91b4cc60efacba5da4d9c # Parent 42198817a5bab32e3635359dd33f228b49c96afe indent diff -r 42198817a5ba -r 2f25133ab807 h264.c --- a/h264.c Tue Dec 23 19:10:46 2008 +0000 +++ b/h264.c Tue Dec 23 19:12:50 2008 +0000 @@ -4153,29 +4153,29 @@ if(prefix == LEVEL_TAB_BITS) prefix += get_level_prefix(gb); - //first coefficient has suffix_length equal to 0 or 1 - if(prefix<14){ //FIXME try to build a large unified VLC table for all this - if(suffix_length) - level_code= (prefix<=16) - level_code += (1<<(prefix-3))-4096; - } - - if(trailing_ones < 3) level_code += 2; - - suffix_length = 2; - mask= -(level_code&1); - level[trailing_ones]= (((2+level_code)>>1) ^ mask) - mask; + //first coefficient has suffix_length equal to 0 or 1 + if(prefix<14){ //FIXME try to build a large unified VLC table for all this + if(suffix_length) + level_code= (prefix<=16) + level_code += (1<<(prefix-3))-4096; + } + + if(trailing_ones < 3) level_code += 2; + + suffix_length = 2; + mask= -(level_code&1); + level[trailing_ones]= (((2+level_code)>>1) ^ mask) - mask; }else{ if(trailing_ones < 3) level_code += (level_code>>31)|1;