# HG changeset patch # User michael # Date 1160396724 0 # Node ID 01e1a12aa38080d1d7e7d4ca9a94490ed70b7326 # Parent c3ed6f46c5d77d0fc3fb5e221b5aeb58c2d79026 remove bytestream_end checks, seems to work fine without them and the bitstream reader doesnt check for the end either diff -r c3ed6f46c5d7 -r 01e1a12aa380 cabac.h --- a/cabac.h Mon Oct 09 11:36:42 2006 +0000 +++ b/cabac.h Mon Oct 09 12:25:24 2006 +0000 @@ -256,7 +256,6 @@ } static void refill(CABACContext *c){ - if(c->bytestream <= c->bytestream_end) #if CABAC_BITS == 16 c->low+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); #else @@ -274,7 +273,6 @@ x= -CABAC_MASK; - if(c->bytestream <= c->bytestream_end) #if CABAC_BITS == 16 x+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1); #else