changeset 3970:508d759b6906 libavcodec

10l bugfix for some disabled code
author michael
date Mon, 09 Oct 2006 14:15:53 +0000
parents fc6e0942353b
children e8a6d5c1ab0b
files cabac.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cabac.h	Mon Oct 09 14:15:14 2006 +0000
+++ b/cabac.h	Mon Oct 09 14:15:53 2006 +0000
@@ -493,9 +493,9 @@
     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))