Re: MAD_ERROR_BADHUFFDATA before MAD_ERROR_BUFLEN
Radek BartoĊ <[email protected]> Tue, 22 May 2007 22:18:16 +0200
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Organization | FIT BUT |
| Message-ID | <[email protected]> |
On Tuesday 22 of May 2007 21:56:58 Rob Leslie wrote: > I just realized that your mpeg_buffer is on the stack. MAD doesn't > copy this buffer; it keeps pointers to it. Unless you're decoding the > entire file in one go, this is very likely a source of corruption and > consequent decoding errors. > > Try moving line 5 outside the function, to file scope. That's it. Thank you very much. I should realize such obvious mistake but= =20 sometimes I can't see the forest for trees :-). --=20 Bc. Radek Barto=C5=88 Faculty of Information Technology Brno University of Technology E-mail: [email protected] Web: http://blackhex.no-ip.org Jabber: [email protected]