From: Monty Date: Mon, 2 Mar 2015 22:35:34 +0000 (+0000) Subject: Remove a set-but-unused variable (lastdelta) in the encode-side lsp X-Git-Tag: v1.3.5~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ea0453f2ecd31a3d23e8546313bf4fbd7a528ce;p=platform%2Fupstream%2Flibvorbis.git Remove a set-but-unused variable (lastdelta) in the encode-side lsp code. Note that the code in question is effectively dead as it's for floor0 encoding, and floor zero has been deprecated for over a decade. svn path=/trunk/vorbis/; revision=19453 --- diff --git a/lib/barkmel.c b/lib/barkmel.c index 12acd4f..c7b26d3 100644 --- a/lib/barkmel.c +++ b/lib/barkmel.c @@ -59,6 +59,14 @@ int main(){ j,i,fromBARK(i),(int)(fromBARK(i)/22050.*128.)); } } + { + float i; + int j; + for(i=0.,j=0;i<28;i+=1,j++){ + fprintf(stderr,"(%d) bark=%f -> %gHz -> %g bark\n", + j,i,fromBARK(i),toBARK(fromBARK(i))); + } + } return(0); } diff --git a/lib/lsp.c b/lib/lsp.c index d60fabf..de4ff73 100644 --- a/lib/lsp.c +++ b/lib/lsp.c @@ -309,7 +309,6 @@ static int comp(const void *a,const void *b){ #define EPSILON 10e-7 static int Laguerre_With_Deflation(float *a,int ord,float *r){ int i,m; - double lastdelta=0.f; double *defl=alloca(sizeof(*defl)*(ord+1)); for(i=0;i<=ord;i++)defl[i]=a[i]; @@ -346,7 +345,6 @@ static int Laguerre_With_Deflation(float *a,int ord,float *r){ if(delta<0.f)delta*=-1; if(fabs(delta/new)<10e-12)break; - lastdelta=delta; } r[m-1]=new;