diff options
author | Tristan Matthews <tmatth@videolan.org> | 2016-05-10 22:03:30 +0300 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2016-05-10 22:03:30 +0300 |
commit | 15fba8812107366465460407e83e599a1b138054 (patch) | |
tree | f10bd7b5e9ada6e08f332d374cdd17325242978e | |
parent | 4dba09347256131f12c80b443250abae4bbbe042 (diff) |
resample: remove redundant initialization
speex_alloc already sets these arrays to 0.
Reported by Jean-Yves Avenard <jyavenard@mozilla.com>
-rw-r--r-- | libspeexdsp/resample.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libspeexdsp/resample.c b/libspeexdsp/resample.c index 26c0840..b68d19b 100644 --- a/libspeexdsp/resample.c +++ b/libspeexdsp/resample.c @@ -842,12 +842,6 @@ EXPORT SpeexResamplerState *speex_resampler_init_frac(spx_uint32_t nb_channels, goto fail; if (!(st->samp_frac_num = (spx_uint32_t*)speex_alloc(nb_channels*sizeof(spx_uint32_t)))) goto fail; - for (i=0;i<nb_channels;i++) - { - st->last_sample[i] = 0; - st->magic_samples[i] = 0; - st->samp_frac_num[i] = 0; - } speex_resampler_set_quality(st, quality); speex_resampler_set_rate_frac(st, ratio_num, ratio_den, in_rate, out_rate); |