[xiph-commits] r13168 - trunk/vorbis/lib/modes

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Jun 21 18:02:20 PDT 2007


Author: xiphmont
Date: 2007-06-21 18:02:19 -0700 (Thu, 21 Jun 2007)
New Revision: 13168

Modified:
   trunk/vorbis/lib/modes/psych_16.h
   trunk/vorbis/lib/modes/psych_44.h
   trunk/vorbis/lib/modes/psych_8.h
   trunk/vorbis/lib/modes/setup_16.h
   trunk/vorbis/lib/modes/setup_22.h
Log:
Attempted fix for bug #300; the last comment identified a legitimate static bounds overrun that would have explained the behavior.



Modified: trunk/vorbis/lib/modes/psych_16.h
===================================================================
--- trunk/vorbis/lib/modes/psych_16.h	2007-06-22 00:58:15 UTC (rev 13167)
+++ trunk/vorbis/lib/modes/psych_16.h	2007-06-22 01:02:19 UTC (rev 13168)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: 16kHz settings 
- last mod: $Id: psych_16.h,v 1.3 2003/09/02 06:05:47 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 
@@ -112,6 +112,13 @@
     {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
 };
 
+static noiseguard _psy_noiseguards_16[4]={
+  {10,10,-1},
+  {10,10,-1},
+  {20,20,-1},
+  {20,20,-1},
+};
+
 static double _noise_thresh_16[4]={ .3,.5,.5,.5 };
 
 static int _noise_start_16[3]={ 256,256,9999 };

Modified: trunk/vorbis/lib/modes/psych_44.h
===================================================================
--- trunk/vorbis/lib/modes/psych_44.h	2007-06-22 00:58:15 UTC (rev 13167)
+++ trunk/vorbis/lib/modes/psych_44.h	2007-06-22 01:02:19 UTC (rev 13168)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: key psychoacoustic settings for 44.1/48kHz
- last mod: $Id: psych_44.h,v 1.29 2003/09/02 07:32:17 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 

Modified: trunk/vorbis/lib/modes/psych_8.h
===================================================================
--- trunk/vorbis/lib/modes/psych_8.h	2007-06-22 00:58:15 UTC (rev 13167)
+++ trunk/vorbis/lib/modes/psych_8.h	2007-06-22 01:02:19 UTC (rev 13168)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: 8kHz psychoacoustic settings 
- last mod: $Id: psych_8.h,v 1.3 2003/09/02 06:05:47 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 

Modified: trunk/vorbis/lib/modes/setup_16.h
===================================================================
--- trunk/vorbis/lib/modes/setup_16.h	2007-06-22 00:58:15 UTC (rev 13167)
+++ trunk/vorbis/lib/modes/setup_16.h	2007-06-22 01:02:19 UTC (rev 13168)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: 16kHz settings 
- last mod: $Id: setup_16.h,v 1.5 2002/10/11 11:14:42 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 
@@ -65,7 +65,7 @@
   _vp_tonemask_adj_16,
   _vp_tonemask_adj_16,
 
-  _psy_noiseguards_8,
+  _psy_noiseguards_16,
   _psy_noisebias_16_impulse,
   _psy_noisebias_16_short,
   _psy_noisebias_16_short,

Modified: trunk/vorbis/lib/modes/setup_22.h
===================================================================
--- trunk/vorbis/lib/modes/setup_22.h	2007-06-22 00:58:15 UTC (rev 13167)
+++ trunk/vorbis/lib/modes/setup_22.h	2007-06-22 01:02:19 UTC (rev 13168)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: 22kHz settings 
- last mod: $Id: setup_22.h,v 1.3 2002/07/11 10:02:29 xiphmont Exp $
+ last mod: $Id$
 
  ********************************************************************/
 
@@ -44,7 +44,7 @@
   _vp_tonemask_adj_16,
   _vp_tonemask_adj_16,
 
-  _psy_noiseguards_8,
+  _psy_noiseguards_16,
   _psy_noisebias_16_impulse,
   _psy_noisebias_16_short,
   _psy_noisebias_16_short,



More information about the commits mailing list