From 14d1b5aa39d9cde8f37b7ad289917c0ea6fb929d Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 26 Mar 2010 06:22:19 +0000 Subject: [PATCH] Revert an element of noise norm to earlier behavior for testing. svn path=/trunk/vorbis/; revision=17077 --- lib/psy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/psy.c b/lib/psy.c index a556e49..f1330a5 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