[xiph-commits] r12757 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Wed Mar 14 06:56:26 PDT 2007
Author: jm
Date: 2007-03-14 06:56:24 -0700 (Wed, 14 Mar 2007)
New Revision: 12757
Modified:
trunk/speex/libspeex/sb_celp.c
Log:
Fixed an low bit-rate ultrawideband encoder bug (not that people should
actually use that in the first place...).
Modified: trunk/speex/libspeex/sb_celp.c
===================================================================
--- trunk/speex/libspeex/sb_celp.c 2007-03-14 13:23:21 UTC (rev 12756)
+++ trunk/speex/libspeex/sb_celp.c 2007-03-14 13:56:24 UTC (rev 12757)
@@ -629,7 +629,11 @@
quant=31;
speex_bits_pack(bits, quant, 5);
}
-
+ if (st->innov_rms_save)
+ {
+ st->innov_rms_save[sub] = eh;
+ }
+ st->exc_rms[sub] = eh;
} else {
spx_word16_t gc; /*Q7*/
spx_word32_t scale; /*Q14*/
@@ -716,11 +720,11 @@
{
st->innov_rms_save[sub] = MULT16_16_Q15(QCONST16(.70711f, 15), compute_rms(innov, st->subframeSize));
}
+ st->exc_rms[sub] = compute_rms16(exc, st->subframeSize);
}
- st->exc_rms[sub] = compute_rms16(exc, st->subframeSize);
/*Keep the previous memory*/
for (i=0;i<st->lpcSize;i++)
More information about the commits
mailing list