10l bugfix for some disabled code
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Oct 2006 14:15:53 +0000 (14:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Oct 2006 14:15:53 +0000 (14:15 +0000)
Originally committed as revision 6603 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.h

index 3de719f..031e136 100644 (file)
@@ -493,9 +493,9 @@ asm(
     c->range += (RangeLPS - c->range) & lps_mask;
 
     bit= (s^lps_mask)&1;
-    *state= c->mps_state[s - (128&lps_mask)];
+    *state= c->mps_state[s - (130&lps_mask)];
 
-    lps_mask= ff_h264_norm_shift[c->range>>(CABAC_BITS+2)];
+    lps_mask= ff_h264_norm_shift[c->range>>(CABAC_BITS+3)];
     c->range<<= lps_mask;
     c->low  <<= lps_mask;
     if(!(c->low & CABAC_MASK))