diff options
author | Monty <xiphmont@xiph.org> | 2000-04-06 16:46:51 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2000-04-06 16:46:51 +0000 |
commit | 7052aba828f4cdfc0c64f2bc89733551ce14e17e (patch) | |
tree | 496d11e4bdc4bfd8cfdf83696f12802d3760575e | |
parent | c28b700da78c158acedd9690c1a5de72dd0751c2 (diff) | |
download | libvorbis-git-7052aba828f4cdfc0c64f2bc89733551ce14e17e.tar.gz |
Another 'moron monty' fix; got the sort backward fixing the earlier
comparison bug
Monty
svn path=/trunk/vorbis/; revision=310
-rw-r--r-- | lib/lsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ ******************************************************************** function: LSP (also called LSF) conversion routines - last mod: $Id: lsp.c,v 1.6 2000/04/06 15:01:20 xiphmont Exp $ + last mod: $Id: lsp.c,v 1.7 2000/04/06 16:46:51 xiphmont Exp $ The LSP generation code is taken (with minimal modification) from "On the Computation of the LSP Frequencies" by Joseph Rothweiler @@ -101,9 +101,9 @@ static void kw(double *r,int n) { static int comp(const void *a,const void *b){ if(*(double *)a<*(double *)b) - return(-1); - else return(1); + else + return(-1); } /* CACM algorithm 283. */ |