[Ffmpeg-devel] random crashes decoding MP3s

Rich Felker dalias
Mon Apr 3 20:00:41 CEST 2006


On Mon, Apr 03, 2006 at 12:49:53PM -0000, Wolfram Gloger wrote:
> > It is possible that some malloc() implementation always returns
> > addresses aligned to, e.g., 64 bits even on 32-bit hardware.  IIRC, glibc
> > malloc() does something like this.
> 
> Yes, 8 byte alignment is necessary on _all_ 32-bit platforms that I
> know of.  Consider "double"..

The SVR4 ABI (which is idiotic but everyone uses it) for x86 aligns
double at 32 bits, not 64 bits. This results in bad performance on
modern systems but changing it will break binary-compatibility with
anything using structs containing doubles.

Rich





More information about the ffmpeg-devel mailing list