Commit eeb1e92f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Simplify suffix_length computation, same speed.

Originally committed as revision 21430 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 725b3da9
......@@ -443,9 +443,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
}else{
level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
suffix_length = 1;
if(level_code + 3U > 6U)
suffix_length++;
suffix_length = 1 + (level_code + 3U > 6U);
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