Commit a7d97ee0 authored by michael's avatar michael

Simplify suffix_length computation, same speed.


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