openbsd-ports/audio/toolame/patches/patch-psycho_4_c

24 lines
1.1 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-psycho_4_c,v 1.1.1.1 2004/07/11 08:11:38 sturm Exp $
--- psycho_4.c.orig 2003-03-01 16:50:26.000000000 -0800
+++ psycho_4.c 2004-04-21 22:41:50.000000000 -0700
@@ -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,