[vorbis] Questions about encoder_example on Mac

Eric Liu eric_nzeds at yahoo.com.au
Tue Mar 5 06:57:11 PST 2002



Hi again,

> I am trying the vorbis_encode example on Mac 9.04 with CW7. When I made a
> little bit change to the example, it crashed.
>
> Here is what I did.
>
> int main()
> {
>     int i;
>     for (i = 0; i < 3; i++) vorbis_encoder_example();
>     return (0);
> }
>
> signed char readbuffer[READ*4+44];
>
> void vorbis_encode_example()
> {
> /* paste the encoder_example's code  in main() here except the return (0);
clause*/
> ..................
> }
>
> As you can see, the change is limited. When I execute the program, when i
=0
> everything is ok, however, when i =1 I got an unmapped
> memory exception on vorbis_info_clear(&vi);
>
> I tried this on different stationary like carbon and standard C. Same
thing
> happened. And the source code for encoder_example is from RC3.
>
> I have no idea at all, could anyone give me a hand?
>

I step through the debugger. When i =1, _ogg_free( ci->mode_param[1] )
causes the crash. But I don't know how to fix it.

Regards

Eric

<p>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list