Simplify suffix_length computation, same speed.

Originally committed as revision 21430 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-01-24 18:18:08 +00:00
parent 725b3da981
commit eeb1e92feb
1 changed files with 1 additions and 3 deletions

View File

@ -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;
} }