# HG changeset patch # User michael # Date 1160403353 0 # Node ID 508d759b690684e3303817ae5a03d8fc1e15c16a # Parent fc6e0942353b8c48c3afea03f8a7a5f7cfbe454b 10l bugfix for some disabled code diff -r fc6e0942353b -r 508d759b6906 cabac.h --- 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))