Mercurial > libavcodec.hg
changeset 4411:fad1bf082bf9 libavcodec
remove void * used in arithmetic warnings
author | bcoudurier |
---|---|
date | Fri, 26 Jan 2007 12:32:23 +0000 |
parents | b1314834b3a7 |
children | cce4bdb0e322 |
files | dtsdec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dtsdec.c Fri Jan 26 02:29:23 2007 +0000 +++ b/dtsdec.c Fri Jan 26 12:32:23 2007 +0000 @@ -210,7 +210,7 @@ static uint8_t buf[BUFFER_SIZE]; static uint8_t * bufptr = buf; static uint8_t * bufpos = buf + HEADER_SIZE; - + int16_t *out_samples = data; static int sample_rate; static int frame_length; static int flags; @@ -273,10 +273,10 @@ { int chans; chans = channels_multi (flags); - convert2s16_multi (dts_samples (state), data, + convert2s16_multi (dts_samples (state), out_samples, flags & (DTS_CHANNEL_MASK | DTS_LFE)); - data += 256 * sizeof (int16_t) * chans; + out_samples += 256 * chans; *data_size += 256 * sizeof (int16_t) * chans; } }