SegFaults :-(

"Michele \"O-Zone\" Pinassi" <liste-PrgQ/[email protected]>
Newsgroups gmane.comp.audio.mp3.encoders
Organization zerozone.it
Message-ID <[email protected]>
Hi all,
i'm using LAME inside one of my project and i often get this segfault:

OH OH ! SIGNAL 11 RECEIVED !
====== BACKTRACE ======
[1] /usr/local/lib/libmp3lame.so.0(lame_init_params+0x1b) [0x40131f5b]
[2] [0xffffe440]
....

this is how i init lame:

int MP3_Init(lame_global_flags *lgf) {
    lame_set_VBR(lgf, vbr_rh);
    lame_set_preset_expopts(lgf, 3);
    lame_set_lowpassfreq(lgf, 19000);
    lame_set_VBR_min_bitrate_kbps(lgf, 48);
    lame_set_mode(lgf, JOINT_STEREO);
    lame_set_quality(lgf, 5);
    lame_set_num_channels(lgf,2);
    lame_set_in_samplerate(lgf,AUDIO_SAMPLERATE);
    lame_set_no_short_blocks(lgf, 1);

    if(lame_init_params(lgf) < 0) {
        LOG_Write(LOG_ERROR,"[MP3LAME] Error INITIALIZING Lame");
        return 0;
    }
    return 1;
}

AUDIO_SAMPLERATE = 8000

I encode a PCM 16bit stream. Suggestions ?

Thanks, Michele

-- 
----
O-Zone ! No (C) 2005
WEB @ http://www.zerozone.it
BLOG @ http://blog.zerozone.it/user/o-zone

-- 
----
O-Zone ! No (C) 2005
WEB @ http://www.zerozone.it
BLOG @ http://blog.zerozone.it/user/o-zone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.