Hello, Joshua.

I'm a japanese lame-user. Please excuse my bad English.

----- Original Message -----
From: "Joshua Bahnsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 21, 2000 4:53 PM
Subject: [MP3 ENCODER] CVS VBR Problems

> I just updated to the latest version in CVS and I was just testing various
> options and I can't seem to encode VBR streams at all. I keep getting
access
> violations. I ran the debugger and it pointed back to:
>
>  0040F586   fld         qword ptr [ecx*8+455A80h]

This may be a bug.
In quantize-pvt.c:calc_noise1(), 'max_index' is set to SBMAX_s in VBR mode
but the maximum index of 'pretab[]' is 'SBMAX_s - 2'.

Please modify around the line 800 in quantize-pvt.c.
---
 if (cod_info->preflag)
     s += pretab[sfb];
---
to
---
 if (cod_info->preflag)
     s += (sfb < 21) ? pretab[sfb] : 2;
---
This fix is perhaps bad.
Anyone have the right fix?

----
zkt

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to