Browse Source

remove bytestream_end checks, seems to work fine without them and the bitstream reader doesnt check for the end either

Originally committed as revision 6599 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
5bbe2a5292
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavcodec/cabac.h

+ 0
- 2
libavcodec/cabac.h View File

@@ -256,7 +256,6 @@ static void put_cabac_ueg(CABACContext *c, uint8_t * state, int v, int max, int
}

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 @@ static void refill2(CABACContext *c){

x= -CABAC_MASK;

if(c->bytestream <= c->bytestream_end)
#if CABAC_BITS == 16
x+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1);
#else


Loading…
Cancel
Save