> From: Sigbj�rn Skj�ret <[EMAIL PROTECTED]>
>
> Ah, I believe I just discovered why this happens. ;)
>
> >    if ( frameResults == NULL )
> >    {
> > frameResults = (BF_FrameResults*) calloc( 1, sizeof(BF_FrameData) );
> > assert( frameData );
> >    }
>
> See something odd? ;)
>
> When I replaced BF_FrameData and frameData with BF_FrameResults and
> frameResults, hey presto, no more crashes... ;))

Even better,

  frameResults = calloc(1, sizeof *frameResults);

No nasty casts necessary, and the size is automagically correct. ;)

-- Mat.


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to