Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2006-04-20 19:08:27 +0400
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2006-04-20 19:08:27 +0400
commit7f07b63644d345a82a855f3b5e2df11592ece20c (patch)
treecd194bd0ffdbdc3b8e98d74958938ccbd51a6c23 /libspeex/nb_celp.c
parenta0feecae4ecff826734775b7cc0a519f0027f71d (diff)
Make sure nobody breaks the code by changing the analysis window size.
git-svn-id: http://svn.xiph.org/trunk/speex@11178 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r--libspeex/nb_celp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c
index eda3d82..30c62a1 100644
--- a/libspeex/nb_celp.c
+++ b/libspeex/nb_celp.c
@@ -770,7 +770,9 @@ int nb_encode(void *state, void *vin, SpeexBits *bits)
#endif
{
- /*FIXME: This is a kludge that will break if we change the window size */
+ /*FIXME: This will break if we change the window size */
+ if (st->windowSize-st->frameSize != st->subframeSize)
+ speex_error("windowSize-frameSize != subframeSize");
if (sub==0)
{
for (i=0;i<st->subframeSize;i++)