Revision eeb1e92f

View differences:

libavcodec/h264_cavlc.c
443 443
        }else{
444 444
            level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
445 445

  
446
            suffix_length = 1;
447
            if(level_code + 3U > 6U)
448
                suffix_length++;
446
            suffix_length = 1 + (level_code + 3U > 6U);
449 447
            level[trailing_ones]= level_code;
450 448
        }
451 449

  

Also available in: Unified diff