Commit 449b37dc authored by michael's avatar michael

Optimize level_code computation, 6cpu cycles speedup.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21428 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c2ecc99b
......@@ -441,7 +441,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
mask= -(level_code&1);
level[trailing_ones]= (((2+level_code)>>1) ^ mask) - mask;
}else{
if(trailing_ones < 3) level_code += (level_code>>31)|1;
level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
suffix_length = 1;
if(level_code + 3U > 6U)
......
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