diff options
author | Matthias Hopf <mat@mshopf.de> | 2006-12-08 16:19:17 +0000 |
---|---|---|
committer | Matthias Hopf <mat@mshopf.de> | 2006-12-08 16:19:17 +0000 |
commit | 3321b7ae77daede398739a832e75c5dfba7de22e (patch) | |
tree | 75450b936cbb6d5862de47d1df257551d364600d /src | |
parent | e6d1a700e06ba8a985c29ba212b359c9e33bcc55 (diff) | |
download | xine-lib-3321b7ae77daede398739a832e75c5dfba7de22e.tar.gz xine-lib-3321b7ae77daede398739a832e75c5dfba7de22e.tar.bz2 |
Fixed duplicate and nonspecified postincrement due to macro call.
CVS patchset: 8406
CVS date: 2006/12/08 16:19:17
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_iff.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/demuxers/demux_iff.c b/src/demuxers/demux_iff.c index 213ac4c99..4775158b7 100644 --- a/src/demuxers/demux_iff.c +++ b/src/demuxers/demux_iff.c @@ -36,7 +36,7 @@ * * ANIM (Animations) * - Animation works fine, without seeking. * - * $Id: demux_iff.c,v 1.17 2006/07/10 22:08:13 dgp85 Exp $ + * $Id: demux_iff.c,v 1.18 2006/12/08 16:19:17 mshopf Exp $ */ #ifdef HAVE_CONFIG_H @@ -827,7 +827,8 @@ static int demux_iff_send_chunk(demux_plugin_t *this_gen) { } } else { for (j = 0, k = (interleave_index / 2); j < (buf->size / 2); j += this->audio_channels) { - zw_16 = BE_16(&pointer16_from[k++]); + zw_16 = BE_16(&pointer16_from[k]); + k++; zw_rescale = zw_16; zw_rescale *= this->audio_volume_left; zw_rescale /= max_volume; @@ -856,7 +857,8 @@ static int demux_iff_send_chunk(demux_plugin_t *this_gen) { } } else { for (j = 1; j < (buf->size / 2); j += this->audio_channels) { - zw_16 = BE_16(&pointer16_from[k++]); + zw_16 = BE_16(&pointer16_from[k]); + k++; zw_rescale = zw_16; zw_rescale *= this->audio_volume_left; zw_rescale /= max_volume; |