comparison common.c @ 1083:b923be2fc4b5 libavcodec

* using const buffers for reading
author kabi
date Mon, 24 Feb 2003 13:41:57 +0000
parents b32afefe7d33
children 1e39f273ecd6
comparison
equal deleted inserted replaced
1082:82c3ba139e51 1083:b923be2fc4b5
108 } 108 }
109 109
110 /* bit input functions */ 110 /* bit input functions */
111 111
112 void init_get_bits(GetBitContext *s, 112 void init_get_bits(GetBitContext *s,
113 uint8_t *buffer, int bit_size) 113 const uint8_t *buffer, int bit_size)
114 { 114 {
115 const int buffer_size= (bit_size+7)>>3; 115 const int buffer_size= (bit_size+7)>>3;
116 116
117 s->buffer= buffer; 117 s->buffer= buffer;
118 s->size_in_bits= bit_size; 118 s->size_in_bits= bit_size;