Alexander,

        I figured out where I went wrong. I was trying to pass integer pointers
for pcm_l and pcm_r. Unfortunately, now I am totally confused. How do I
get the pcm data back from the function without pointer and when the
function returns number of frames?

Helplessly lost . . . 

Deven Phillips

On Tue, 2004-01-13 at 09:37, Deven Phillips wrote:
> Alexander,
> 
>       Thanks for the info. I'm rather new to gdb, and thos two other commands
> helped a lot, but not with the ipow20() call. Here's the output.
> 
> #0  0x400afa2a in lame_decode1_headersB (buffer=0x0, len=0,
> pcm_l=0x112a4e5, pcm_r=0x6112a4e5,
>     mp3data=0x112a4e5, enc_delay=0x0, enc_padding=0x0) at
> mpglib_interface.c:137
> 137                     pcm_l[i] = *p++;
> (gdb) bt
> #0  0x400afa2a in lame_decode1_headersB (buffer=0x0, len=0,
> pcm_l=0x112a4e5, pcm_r=0x6112a4e5,
>     mp3data=0x112a4e5, enc_delay=0x0, enc_padding=0x0) at
> mpglib_interface.c:137
> #1  0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0
> (gdb) up 1
> #1  0x4011ae60 in ipow20 () from /usr/lib/libmp3lame.so.0
> (gdb) list
> 137                     pcm_l[i] = *p++;
> 138                     pcm_r[i] = *p++;
> 139                 }
> 140                 break;
> 141             default:
> 142                 processed_samples = -1;
> 143                 assert(0);
> 144                 break;
> 145             }
> 146             break;
> 
> Also, the version is 3.93.1.
> 
> TIA,
> 
> Deven
> 
> On Tue, 2004-01-13 at 02:14, Alexander Leidinger wrote:
> > On Tue, 13 Jan 2004 01:45:34 -1000
> > Deven Phillips <[EMAIL PROTECTED]> wrote:
> > 
> > > I have been working with LAME for a total of about one week now, and I
> > > am now running into an error I can't seem to make any progress with.
> > > When I run my program, it segfaults and a gdb backtrace shows:
> > > 
> > > #0  0x400a0aa4 in lame_decode1_headersB () from /usr/lib/libmp3lame.so.0
> > > (gdb) bt
> > > #0  0x400a0aa4 in lame_decode1_headersB () from /usr/lib/libmp3lame.so.0
> > > #1  0x40108820 in ipow20 () from /usr/lib/libmp3lame.so.0
> > > #2  0x8000287d in ?? ()
> > > Cannot access memory at address 0x63652d9d
> > > 
> > > Any ideas why the ipow20 function would be segfaulting?
> > 
> > Which version of lame? Please compile with debug options and provide the
> > output of gdb with the commands "bt", "up 1", "list" (order is
> > important).
> > 
> > Bye,
> > Alexander.
> 
> _______________________________________________
> mp3encoder mailing list
> [EMAIL PROTECTED]
> http://minnie.tuhs.org/mailman/listinfo/mp3encoder

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to