summaryrefslogtreecommitdiff
path: root/audio/toolame/files/patch-psycho__4.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/toolame/files/patch-psycho__4.c')
-rw-r--r--audio/toolame/files/patch-psycho__4.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/toolame/files/patch-psycho__4.c b/audio/toolame/files/patch-psycho__4.c
new file mode 100644
index 000000000000..1facd4e25e51
--- /dev/null
+++ b/audio/toolame/files/patch-psycho__4.c
@@ -0,0 +1,22 @@
+--- psycho_4.c.orig 2003-03-02 00:50:48 UTC
++++ psycho_4.c
+@@ -330,6 +330,8 @@ void psycho_4 (short int *buffer, short
+ void psycho_4_init (double sfreq, options *glopts)
+ {
+ int i, j;
++ int partition_count; /* keep a count of the partitions */
++ int cbase; /* current base index for the bark range calculation */
+
+ /* Allocate memory for all the static variables */
+ psycho_4_allocmem();
+@@ -365,8 +367,8 @@ void psycho_4_init (double sfreq, option
+ Starting from line 0, all lines within 0.33 of the starting
+ bark are added to the same partition. When a line is greater
+ by 0.33 of a bark, start a new partition. */
+- int partition_count = 0; /* keep a count of the partitions */
+- int cbase = 0; /* current base index for the bark range calculation */
++ partition_count = 0;
++ cbase = 0;
+ for (i=0;i<HBLKSIZE;i++) {
+ if ((bark[i] - bark[cbase]) > 0.33) { /* 1/3 critical band? */
+ /* this frequency line is too different from the starting line,