binkaudio: remove unnecessary loop
decode_init sets bands[0] == 2, so this loop always sets the band table index (k) to zero. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
582ac86d19
commit
a304def1dc
@ -164,7 +164,6 @@ static void decode_block(BinkAudioContext *s, short *out, int use_dct)
|
|||||||
|
|
||||||
for (ch = 0; ch < s->channels; ch++) {
|
for (ch = 0; ch < s->channels; ch++) {
|
||||||
FFTSample *coeffs = s->coeffs_ptr[ch];
|
FFTSample *coeffs = s->coeffs_ptr[ch];
|
||||||
q = 0.0f;
|
|
||||||
coeffs[0] = get_float(gb) * s->root;
|
coeffs[0] = get_float(gb) * s->root;
|
||||||
coeffs[1] = get_float(gb) * s->root;
|
coeffs[1] = get_float(gb) * s->root;
|
||||||
|
|
||||||
@ -174,10 +173,8 @@ static void decode_block(BinkAudioContext *s, short *out, int use_dct)
|
|||||||
quant[i] = expf(FFMIN(value, 95) * 0.15289164787221953823f) * s->root;
|
quant[i] = expf(FFMIN(value, 95) * 0.15289164787221953823f) * s->root;
|
||||||
}
|
}
|
||||||
|
|
||||||
// find band (k)
|
k = 0;
|
||||||
for (k = 0; s->bands[k] < 1; k++) {
|
q = quant[0];
|
||||||
q = quant[k];
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse coefficients
|
// parse coefficients
|
||||||
i = 2;
|
i = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user