summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2010-03-26 06:22:19 +0000
committerMonty <xiphmont@xiph.org>2010-03-26 06:22:19 +0000
commit14d1b5aa39d9cde8f37b7ad289917c0ea6fb929d (patch)
treedfe7dd3b4b3a88943ead29f9687611c35508c86a
parent90cb20ed01ad20e4fa9c8b75e5484f8f61e9d847 (diff)
downloadlibvorbis-git-14d1b5aa39d9cde8f37b7ad289917c0ea6fb929d.tar.gz
Revert an element of noise norm to earlier behavior for testing.
svn path=/trunk/vorbis/; revision=17077
-rw-r--r--lib/psy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/psy.c b/lib/psy.c
index a556e496..f1330a52 100644
--- a/lib/psy.c
+++ b/lib/psy.c
@@ -939,6 +939,9 @@ static float noise_normalize(vorbis_look_psy *p, int limit, float *r, float *q,
int start = (vi->normal_p ? vi->normal_start-i : n);
if(start>n)start=n;
+ /* force classic behavior where only energy in the current band is considered */
+ acc=0.f;
+
/* still responsible for populating *out where noise norm not in
effect. There's no need to [re]populate *q in these areas */
for(j=0;j<start;j++){