comparison cabac.c @ 2024:f65d87bfdd5a libavcodec

some of the warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)
author michael
date Tue, 18 May 2004 17:09:46 +0000
parents e20fd60b215c
children 48d9f86fb047
comparison
equal deleted inserted replaced
2023:50e92cec1b84 2024:f65d87bfdd5a
88 88
89 /** 89 /**
90 * 90 *
91 * @param buf_size size of buf in bits 91 * @param buf_size size of buf in bits
92 */ 92 */
93 void ff_init_cabac_decoder(CABACContext *c, uint8_t *buf, int buf_size){ 93 void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){
94 c->bytestream_start= 94 c->bytestream_start=
95 c->bytestream= buf; 95 c->bytestream= buf;
96 96
97 c->low= *c->bytestream++; 97 c->low= *c->bytestream++;
98 c->low= (c->low<<9) + ((*c->bytestream++)<<1); 98 c->low= (c->low<<9) + ((*c->bytestream++)<<1);