Commit 7abc8603 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Optimize suffix_length computation, 1 cpu cycle speedup.

Originally committed as revision 21431 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent eeb1e92f
......@@ -470,9 +470,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
level_code= (((2+level_code)>>1) ^ mask) - mask;
}
level[i]= level_code;
if(suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length])
suffix_length++;
suffix_length+= suffix_limit[suffix_length] + level_code > 2U*suffix_limit[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