Revision 79396ac6 libavcodec/rangecoder.c

View differences:

libavcodec/rangecoder.c
49 49
}
50 50

  
51 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 55
    c->low =(*c->bytestream++)<<8;
55 56
    c->low+= *c->bytestream++;

Also available in: Unified diff