shithub: aacenc

Download patch

ref: a6be207c14468a2a83cb46aafe1696b6993789fe
parent: e62280b166b70adc335cd351d2a3d87777476409
author: knik <knik>
date: Sun Sep 7 12:48:01 EDT 2003

reduced arrays size

--- a/libfaac/fft.c
+++ b/libfaac/fft.c
@@ -1,6 +1,6 @@
 /*
  * FAAC - Freeware Advanced Audio Coder
- * $Id: fft.c,v 1.8 2002/11/23 17:32:54 knik Exp $
+ * $Id: fft.c,v 1.9 2003/09/07 16:48:01 knik Exp $
  * Copyright (C) 2002 Krzysztof Nikiel
  *
  * This library is free software; you can redistribute it and/or
@@ -26,7 +26,8 @@
 #include "fft.h"
 #include "util.h"
 
-#define MAXLOGM 11
+#define MAXLOGM 9
+#define MAXLOGR 8
 
 typedef float fftfloat;
 
@@ -164,11 +165,11 @@
 
 void rfft(double *x, int logm)
 {
-   double xi[1 << MAXLOGM];
+   double xi[1 << MAXLOGR];
 
-   if (logm > MAXLOGM)
+   if (logm > MAXLOGR)
    {
-     fprintf(stderr, "fft size too big\n");
+     fprintf(stderr, "rfft size too big\n");
      exit(1);
    }
 
@@ -200,6 +201,9 @@
 
 /*
 $Log: fft.c,v $
+Revision 1.9  2003/09/07 16:48:01  knik
+reduced arrays size
+
 Revision 1.8  2002/11/23 17:32:54  knik
 rfft: made xi a local variable