[xiph-cvs] cvs commit: speex/libspeex filters.c

Jean-Marc Valin jm at xiph.org
Sun Nov 30 09:56:54 PST 2003



jm          03/11/30 12:56:54

  Modified:    libspeex filters.c
  Log:
  fixed-point: oops, fixed another overflow for 4 kbps mode.

Revision  Changes    Path
1.69      +1 -1      speex/libspeex/filters.c

Index: filters.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/filters.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- filters.c	30 Nov 2003 16:35:20 -0000	1.68
+++ filters.c	30 Nov 2003 17:56:53 -0000	1.69
@@ -72,7 +72,7 @@
    int i;
    for (i=0;i<len;i++)
    {
-      y[i] = MULT16_32_Q14((x[i]>>4),scale)<<4;
+      y[i] = SHL(MULT16_32_Q14(SHR(x[i],7),scale),7);
    }
 }
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list