comparison dtsdec.c @ 4411:fad1bf082bf9 libavcodec

remove void * used in arithmetic warnings
author bcoudurier
date Fri, 26 Jan 2007 12:32:23 +0000
parents c0e2e4249145
children ca8c6efd00d3
comparison
equal deleted inserted replaced
4410:b1314834b3a7 4411:fad1bf082bf9
208 uint8_t * start = buff; 208 uint8_t * start = buff;
209 uint8_t * end = buff + buff_size; 209 uint8_t * end = buff + buff_size;
210 static uint8_t buf[BUFFER_SIZE]; 210 static uint8_t buf[BUFFER_SIZE];
211 static uint8_t * bufptr = buf; 211 static uint8_t * bufptr = buf;
212 static uint8_t * bufpos = buf + HEADER_SIZE; 212 static uint8_t * bufpos = buf + HEADER_SIZE;
213 213 int16_t *out_samples = data;
214 static int sample_rate; 214 static int sample_rate;
215 static int frame_length; 215 static int frame_length;
216 static int flags; 216 static int flags;
217 int bit_rate; 217 int bit_rate;
218 int len; 218 int len;
271 if (dts_block (state)) 271 if (dts_block (state))
272 goto error; 272 goto error;
273 { 273 {
274 int chans; 274 int chans;
275 chans = channels_multi (flags); 275 chans = channels_multi (flags);
276 convert2s16_multi (dts_samples (state), data, 276 convert2s16_multi (dts_samples (state), out_samples,
277 flags & (DTS_CHANNEL_MASK | DTS_LFE)); 277 flags & (DTS_CHANNEL_MASK | DTS_LFE));
278 278
279 data += 256 * sizeof (int16_t) * chans; 279 out_samples += 256 * chans;
280 *data_size += 256 * sizeof (int16_t) * chans; 280 *data_size += 256 * sizeof (int16_t) * chans;
281 } 281 }
282 } 282 }
283 bufptr = buf; 283 bufptr = buf;
284 bufpos = buf + HEADER_SIZE; 284 bufpos = buf + HEADER_SIZE;