IPB

Welcome Guest ( Log In | Register )

linking dynamic libarary (libmp3lame.so) - Segmentation Fault at lame_
bbsforu
post Jan 17 2012, 08:07
Post #1





Group: Members
Posts: 1
Joined: 17-January 12
Member No.: 96498



Hi. my name is andrew. I have a question about using Lame.
I'm making LAME's frontend program on linux using libmp3lame.so for practice.
I composed a single main function which is doing specific encoding options.(same as default option)
referecing API documents,
The library file is linked dynamically and I'm calling inner functions through invoke functions..
I checked global variables and flags before call lame_encode_buffer_int()

But when i call the lame_encode_buffer_int(), It always stops with segmentation fault at the end of
lame_copy_inbuffer() in lame.c. My source code is almost same as frontend's lame_main.c and main.c.
A strange thing is that the segmentation fault always arise at the lame_encode_buffer_int 's second call.

I printed with every buffer's data with printf, but the flow ends with Segmentation Fault when it prints around
the end of arrays(or buffer). OTL...

Please give me if you have any tips about this problem.

This post has been edited by bbsforu: Jan 17 2012, 08:21
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 02:11