changeset 3967:01e1a12aa380 libavcodec

remove bytestream_end checks, seems to work fine without them and the bitstream reader doesnt check for the end either
author michael
date Mon, 09 Oct 2006 12:25:24 +0000
parents c3ed6f46c5d7
children c86c7a54ba92
files cabac.h
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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