Commit d3530795 authored by michael's avatar michael

simplify escape decoding


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6685 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 85c691bf
......@@ -6164,14 +6164,14 @@ static int decode_cabac_residual( H264Context *h, DCTELEM *block, int cat, int n
if( coeff_abs >= 15 ) {
int j = 0;
while( get_cabac_bypass( &h->cabac ) ) {
coeff_abs += 1 << j;
j++;
}
coeff_abs=1;
while( j-- ) {
if( get_cabac_bypass( &h->cabac ) )
coeff_abs += 1 << j ;
coeff_abs += coeff_abs + get_cabac_bypass( &h->cabac );
}
coeff_abs+= 14;
}
if( !qmul ) {
......
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