[Ffmpeg-devel] random crashes decoding MP3s

Måns Rullgård mru
Sun Apr 2 13:14:38 CEST 2006


Jacob Meuser <jakemsr at jakemsr.com> writes:

> On Sat, Apr 01, 2006 at 11:41:00PM +0100, M?ns Rullg?rd wrote:
>> M?ns Rullg?rd <mru at inprovide.com> writes:
>> > I tried to build ffmpeg on OpenBSD myself, and it turns out it's not
>> > as easy as it should be.  What exactly have you done to your source to
>> > make it build?
>> 
>> OK, now it builds, but only with --enable-memalign-hack.  Did you use
>> this option or disable mmx/sse?  OpenBSD appears to be missing
>> memalign() so one or the other is required.  Forcing mmx/sse without a
>> proper memalign() can very well result in random crashes.
>
> yes, there is no memlign() on OpenBSD.
>
> quoting malloc(3)
>
>     The allocated space is suitably aligned (after possible pointer coercion)
>     for storage of any type of object.  If the space is of pagesize or larg-
>     er, the memory returned will be page-aligned.
>
> enabling the memalign-hack actually causes crashes all over the
> place.  I am only seeing problems decoding MP3 files.

Well, I didn't see any problems running it with the memalign hack.

Could you send me your crashing ffmpeg executable (privately)?

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list