# HG changeset patch # User michael # Date 1264356302 0 # Node ID cf7a9b5c4064e0a10a431e66e27fd0a3f4193188 # Parent a6908ae0e0b514c38e7c9da4e2ff98cb019958ed 1 cpu cycle faster suffix_length calculation. diff -r a6908ae0e0b5 -r cf7a9b5c4064 h264_cavlc.c --- a/h264_cavlc.c Sun Jan 24 17:27:00 2010 +0000 +++ b/h264_cavlc.c Sun Jan 24 18:05:02 2010 +0000 @@ -408,7 +408,7 @@ if(trailing_ones 10 && trailing_ones < 3; + int suffix_length = total_coeff > 10 & trailing_ones < 3; int bitsi= show_bits(gb, LEVEL_TAB_BITS); int level_code= cavlc_level_tab[suffix_length][bitsi][0];