X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fpsy.c;h=13101230ea3abd41eda076a985af33453873bfcb;hb=0a4beb1d04f802c48016b11fb939690e24173168;hp=8c6918cdbb19e928a949ba276e8f06dbfaf72bb7;hpb=937f06475bbd73c7d9488f6536637ea8c9586afc;p=platform%2Fupstream%2Flibvorbis.git diff --git a/lib/psy.c b/lib/psy.c index 8c6918c..1310123 100644 --- a/lib/psy.c +++ b/lib/psy.c @@ -11,7 +11,6 @@ ******************************************************************** function: psychoacoustics not including preecho - last mod: $Id$ ********************************************************************/ @@ -603,8 +602,9 @@ static void bark_noise_hybridmp(int n,const long *b, for (i = 0, x = 0.f;; i++, x += 1.f) { lo = b[i] >> 16; - if( lo>=0 ) break; hi = b[i] & 0xffff; + if( lo>=0 ) break; + if( hi>=n ) break; tN = N[hi] + N[-lo]; tX = X[hi] - X[-lo]; @@ -1020,7 +1020,9 @@ void _vp_couple_quantize_normalize(int blobno, int limit = g->coupling_pointlimit[p->vi->blockflag][blobno]; float prepoint=stereo_threshholds[g->coupling_prepointamp[blobno]]; float postpoint=stereo_threshholds[g->coupling_postpointamp[blobno]]; +#if 0 float de=0.1*p->m_val; /* a blend of the AoTuV M2 and M3 code here and below */ +#endif /* mdct is our raw mdct output, floor not removed. */ /* inout passes in the ifloor, passes back quantized result */