Commit 65536802 authored by michael's avatar michael

1 cpu cycle faster suffix_length calculation.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21425 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 54f83f97
...@@ -408,7 +408,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in ...@@ -408,7 +408,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
if(trailing_ones<total_coeff) { if(trailing_ones<total_coeff) {
int mask, prefix; int mask, prefix;
int suffix_length = total_coeff > 10 && trailing_ones < 3; int suffix_length = total_coeff > 10 & trailing_ones < 3;
int bitsi= show_bits(gb, LEVEL_TAB_BITS); int bitsi= show_bits(gb, LEVEL_TAB_BITS);
int level_code= cavlc_level_tab[suffix_length][bitsi][0]; int level_code= cavlc_level_tab[suffix_length][bitsi][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