shithub: aacenc

Download patch

ref: 5954bc016db0d1c53d4877f6fbcc24c70ad2a489
parent: cb178e9f19e44a12544e65b8aae052e3b85119f3
author: Eugène Filin <eugene.filin@gmail.com>
date: Tue Jul 16 09:32:28 EDT 2019

Accurate buffer size estimation

--- a/libfaac/blockswitch.c
+++ b/libfaac/blockswitch.c
@@ -276,8 +276,8 @@
     double cosfreq8, sinfreq8;
     int i, n;
 
-    double xi[BLOCK_LEN_LONG];
-    double xr[BLOCK_LEN_LONG];
+    double xi[BLOCK_LEN_LONG / 2];
+    double xr[BLOCK_LEN_LONG / 2];
 
     /* prepare for recurrence relation in pre-twiddle */
     cfreq = cos (freq);