Revision 2d76bf39

View differences:

libavcodec/h264.c
4177 4177
                if(prefix == LEVEL_TAB_BITS){
4178 4178
                    prefix += get_level_prefix(gb);
4179 4179
                }
4180
            if(prefix<15){
4181
                level_code = (prefix<<suffix_length) + get_bits(gb, suffix_length);
4182
            }else{
4183
                level_code = (15<<suffix_length) + get_bits(gb, prefix-3);
4184
                if(prefix>=16)
4185
                    level_code += (1<<(prefix-3))-4096;
4186
            }
4187
            mask= -(level_code&1);
4180
                if(prefix<15){
4181
                    level_code = (prefix<<suffix_length) + get_bits(gb, suffix_length);
4182
                }else{
4183
                    level_code = (15<<suffix_length) + get_bits(gb, prefix-3);
4184
                    if(prefix>=16)
4185
                        level_code += (1<<(prefix-3))-4096;
4186
                }
4187
                mask= -(level_code&1);
4188 4188
                level_code= (((2+level_code)>>1) ^ mask) - mask;
4189 4189
            }
4190 4190
            level[i]= level_code;

Also available in: Unified diff