#6403: Use of both posix_memalign() and realloc() on same memory block not
supported
-------------------------------------+------------------------------------
Reporter: jrummell | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by jkqxz):
ffmpeg uses posix_memalign() for all allocation on platforms where it is
supported, and requires that realloc() be usable on the returned pointers.
While POSIX does not require this, it is supported by all implementations
we are aware of. (And indeed I would expect it to be supported by all
non-DS9K implementations, since storing additional metadata to distinguish
between pointers returned by posix_memalign() and malloc() in order to be
able to release nasal demons when the former are passed to realloc() would
be a pointless overhead.)
Do you have a platform on which this is not usable?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6403#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac