acdd092453
- Fix random crashes caused by invalid 32-bit shifts on 32-bit values. - Mark tables as static constants. - Change output normalisation factor from 3/2 to sqrt(2). - Sanity check for subframes and prim_channels to avoid crashes with invalid streams. - Avoid crashing with invalid frames setting a bitalloc_huffman component to 7. While here, tweak COMMENT and remove USE_GROFF. from Brad
43 lines
993 B
Plaintext
43 lines
993 B
Plaintext
$OpenBSD: patch-libdca_tables_fir_h,v 1.1 2012/05/15 16:17:27 ajacoutot Exp $
|
|
|
|
Mark tables as static constants.
|
|
|
|
--- libdca/tables_fir.h.orig Mon May 14 22:50:58 2012
|
|
+++ libdca/tables_fir.h Mon May 14 22:51:17 2012
|
|
@@ -21,7 +21,7 @@
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
-double fir_32bands_perfect[] =
|
|
+static const double fir_32bands_perfect[] =
|
|
{
|
|
+1.135985195E-010,
|
|
-6.022448247E-007,
|
|
@@ -537,7 +537,7 @@ double fir_32bands_perfect[] =
|
|
-1.135985195E-010
|
|
};
|
|
|
|
-double fir_32bands_nonperfect[] =
|
|
+static const double fir_32bands_nonperfect[] =
|
|
{
|
|
-1.390191784E-007,
|
|
-1.693738625E-007,
|
|
@@ -1053,7 +1053,7 @@ double fir_32bands_nonperfect[] =
|
|
+1.390191784E-007
|
|
};
|
|
|
|
-double lfe_fir_64[] =
|
|
+static const double lfe_fir_64[] =
|
|
{
|
|
2.6584343868307770E-004,
|
|
8.1793652498163280E-005,
|
|
@@ -1569,7 +1569,7 @@ double lfe_fir_64[] =
|
|
2.6584343868307770E-004
|
|
};
|
|
|
|
-double lfe_fir_128[] =
|
|
+static const double lfe_fir_128[] =
|
|
{
|
|
0.00053168571,
|
|
0.00016358691,
|