comparison cabac.h @ 3946:ab0797f2e397 libavcodec

() 10l
author michael
date Sat, 07 Oct 2006 12:41:55 +0000
parents 811a9b0d9f32
children c8c591fe26f8
comparison
equal deleted inserted replaced
3945:9544ad38f02a 3946:ab0797f2e397
254 } 254 }
255 255
256 static void refill(CABACContext *c){ 256 static void refill(CABACContext *c){
257 if(c->bytestream <= c->bytestream_end) 257 if(c->bytestream <= c->bytestream_end)
258 #if CABAC_BITS == 16 258 #if CABAC_BITS == 16
259 c->low+= ((c->bytestream[0]<<9) + (c->bytestream[1])<<1); 259 c->low+= (c->bytestream[0]<<9) + (c->bytestream[1]<<1);
260 #else 260 #else
261 c->low+= c->bytestream[0]<<1; 261 c->low+= c->bytestream[0]<<1;
262 #endif 262 #endif
263 c->low -= CABAC_MASK; 263 c->low -= CABAC_MASK;
264 c->bytestream+= CABAC_BITS/8; 264 c->bytestream+= CABAC_BITS/8;