diff options
-rw-r--r-- | libspeex/cb_search.c | 3 | ||||
-rw-r--r-- | libspeex/sb_celp.c | 2 | ||||
-rw-r--r-- | libspeex/testenc_sb.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/libspeex/cb_search.c b/libspeex/cb_search.c index e2fc139..dcdf72a 100644 --- a/libspeex/cb_search.c +++ b/libspeex/cb_search.c @@ -350,8 +350,7 @@ float *stack gain_id = frame_bits_unpack_unsigned(bits, 3); gains[i]=scal_gains4[gain_id]; - if (sign[i]) - gains[i]=-gains[i]; + gains[i] *= sign[i]; gains[i] *= exc_energy; } diff --git a/libspeex/sb_celp.c b/libspeex/sb_celp.c index fda594e..04b921b 100644 --- a/libspeex/sb_celp.c +++ b/libspeex/sb_celp.c @@ -676,6 +676,8 @@ void sb_decode(SBDecState *st, FrameBits *bits, float *out) for (i=0;i<st->frame_size;i++) st->exc[i]=0; + + /* Up-sample coded low-band and high-band*/ for (i=0;i<st->frame_size;i++) { diff --git a/libspeex/testenc_sb.c b/libspeex/testenc_sb.c index c70b3af..07f905b 100644 --- a/libspeex/testenc_sb.c +++ b/libspeex/testenc_sb.c @@ -59,7 +59,7 @@ int main(int argc, char **argv) } frame_bits_rewind(&bits); - sb_decode(&dec, &bits, input); + /*sb_decode(&dec, &bits, input);*/ frame_bits_reset(&bits); for (i=0;i<FRAME_SIZE;i++) |