Rob Leslie wrote:
--- layer3.old.c Mon Nov 6 01:56:35 2000 +++ layer3.c Mon Nov 6 01:57:57 2000 @@ -1112,7 +1112,7 @@ lsf_scale = lsf_is_table[right_ch->scalefac_compress & 0x1];
for (i = bound; i < 576; ++i) {
unsigned int is_pos = 7;
unsigned int is_pos; if (f-- == 0) { if (w-- == 0) {
This is actually what I had written originally, but I had changed it due to a compiler warning. :-/
Shouldn't is_pos at least be initialised to 0? From the looks of things, there's code paths to the first check of is_pos at line 1136 where is_pos isn't explicitly set, and an automatic variable's default value is undefined (whatever was left on the stack or in the register at the time).
Note that I haven't done an audio check on this...
Simon. -- Simon Burge simonb@wasabisystems.com NetBSD Sales, Support and Service: http://www.wasabisystems.com/