[FFmpeg-devel] [PATCH] mingw memalign hack fix

Reimar Döffinger Reimar.Doeffinger
Mon Dec 1 10:51:21 CET 2008

On Mon, Dec 01, 2008 at 11:42:39AM +0200, aviad rozenhek wrote:
> just my two cents,
> this could be implemented pretty trivially but less efficiently by
> implementing av_realloc using just malloc and memcpy instead of using
> realloc

No it can't. At best you can implement it via realloc + malloc + memcpy,
but even then you do not get the correct realloc semantics.
It might be possible to do it by also saving the malloc'd size and not
just the offset when memalign hack is enabled.
Anyway we still lack even the slightest hint what exactly is going
wrong, if you are fixing a bug without knowing what is wrong you are
doing it wrong no matter how good your "fix" is.

Reimar D?ffinger

More information about the ffmpeg-devel mailing list