Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
When I encode with lame_encode_buffer ,but it crash on linux ,on the
win32 it runs ok.
My version of lame is 3.93
Here is a very simple test code, get =A1=B0Segmentation fault=A1=B1 on =
linux 7.3 but good with vc++6.0 and run well on win32. can anyone give
me somehelp? Thank you very much!
#define PCMLEN 441*2
#define MAXMP3 ((int)(1.25 *PCMLEN) + 7200)*2
short int pcmdata[PCMLEN]; =20
unsigned char mp3Buffer[MAXMP3];
lameParams, /* global context handle */
(short int *)pcmdata, /* PCM data for left channel */
(short int *)pcmdata, /* PCM data for right channel */
PCMLEN, /* number of samples per channel */