comparison common.c @ 1249:7ac0a77e5973 libavcodec

100l (document buffer padding requirements)
author michaelni
date Mon, 12 May 2003 23:03:00 +0000
parents e88d3b1fb2a1
children 604661d34c68
comparison
equal deleted inserted replaced
1248:25fb0364c4bb 1249:7ac0a77e5973
121 121
122 /* bit input functions */ 122 /* bit input functions */
123 123
124 #endif //CONFIG_ENCODERS 124 #endif //CONFIG_ENCODERS
125 125
126 /**
127 * init GetBitContext.
128 * @param buffer bitstream buffer, must be FF_INPUT_BUFFER_PADDING_SIZE bytes larger then the actual read bits
129 * because some optimized bitstream readers read 32 or 64 bit at once and could read over the end
130 * @param bit_size the size of the buffer in bits
131 */
126 void init_get_bits(GetBitContext *s, 132 void init_get_bits(GetBitContext *s,
127 const uint8_t *buffer, int bit_size) 133 const uint8_t *buffer, int bit_size)
128 { 134 {
129 const int buffer_size= (bit_size+7)>>3; 135 const int buffer_size= (bit_size+7)>>3;
130 136