diff options
author | Monty <xiphmont@xiph.org> | 2015-03-02 22:35:34 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2015-03-02 22:35:34 +0000 |
commit | 6ea0453f2ecd31a3d23e8546313bf4fbd7a528ce (patch) | |
tree | c06568739e9b33d1456e022a306755da89e6c351 | |
parent | dbc856779d7e88ca71572bb1740e770687a3ce9a (diff) | |
download | libvorbis-git-6ea0453f2ecd31a3d23e8546313bf4fbd7a528ce.tar.gz |
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
-rw-r--r-- | lib/barkmel.c | 8 | ||||
-rw-r--r-- | lib/lsp.c | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/barkmel.c b/lib/barkmel.c index 12acd4f2..c7b26d3d 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); } @@ -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; |