Mercurial > libavcodec.hg
comparison rangecoder.c @ 2864:95bac7109ff0 libavcodec
Kill some compiler warnings. Compiled code verified identical after changes.
| author | mru |
|---|---|
| date | Tue, 06 Sep 2005 21:25:35 +0000 |
| parents | e25782262d7d |
| children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
| 2863:521756176cbb | 2864:95bac7109ff0 |
|---|---|
| 47 c->outstanding_count= 0; | 47 c->outstanding_count= 0; |
| 48 c->outstanding_byte= -1; | 48 c->outstanding_byte= -1; |
| 49 } | 49 } |
| 50 | 50 |
| 51 void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size){ | 51 void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size){ |
| 52 ff_init_range_encoder(c, buf, buf_size); | 52 /* cast to avoid compiler warning */ |
| 53 ff_init_range_encoder(c, (uint8_t *) buf, buf_size); | |
| 53 | 54 |
| 54 c->low =(*c->bytestream++)<<8; | 55 c->low =(*c->bytestream++)<<8; |
| 55 c->low+= *c->bytestream++; | 56 c->low+= *c->bytestream++; |
| 56 } | 57 } |
| 57 | 58 |
