# HG changeset patch # User michael # Date 1107094230 0 # Node ID 73afecc117a3f0d011f8fb55ab00949775ce8c70 # Parent 021dc26e760f546c53b20cab3fe1ee8ea5f800bb 10l (didnt test code after cvs up ...) diff -r 021dc26e760f -r 73afecc117a3 mpegaudiodec.c --- a/mpegaudiodec.c Sun Jan 30 14:04:56 2005 +0000 +++ b/mpegaudiodec.c Sun Jan 30 14:10:30 2005 +0000 @@ -864,7 +864,7 @@ 32 samples. */ /* XXX: optimize by avoiding ring buffer usage */ void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, - MPA_INT *window, + MPA_INT *window, int *dither_state, int16_t *samples, int incr, int32_t sb_samples[SBLIMIT]) { @@ -903,7 +903,7 @@ w = window; w2 = window + 31; - sum = s1->dither_state; + sum = *dither_state; p = synth_buf + 16; SUM8(sum, +=, w, p); p = synth_buf + 48; @@ -933,7 +933,7 @@ p = synth_buf + 32; SUM8(sum, -=, w + 32, p); *samples = round_sample(&sum); - s1->dither_state= sum; + *dither_state= sum; offset = (offset - 32) & 511; *synth_buf_offset = offset; @@ -2494,7 +2494,7 @@ samples_ptr = samples + ch; for(i=0;isynth_buf[ch], &(s->synth_buf_offset[ch]), - window, + window, &s->dither_state, samples_ptr, s->nb_channels, s->sb_samples[ch][i]); samples_ptr += 32 * s->nb_channels;