Commit cea50d0c authored by michael's avatar michael

Optimize suffix_length computation, 1 cpu cycle speedup.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21431 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a7d97ee0
...@@ -470,9 +470,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in ...@@ -470,9 +470,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
level_code= (((2+level_code)>>1) ^ mask) - mask; level_code= (((2+level_code)>>1) ^ mask) - mask;
} }
level[i]= level_code; level[i]= level_code;
suffix_length+= suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length];
if(suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length])
suffix_length++;
} }
} }
......
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