1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-06 16:10:09 +02:00

simplify escape decoding

Originally committed as revision 6685 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-10-13 16:19:15 +00:00
parent a88fc5c040
commit b566bd65e2

View File

@ -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 ) {