[FFmpeg-user] Is av_malloc() and av_free() thread safe?

Kirill Gavrilov gavr.mail at gmail.com
Thu Sep 22 06:20:06 CEST 2011

On Wed, Sep 21, 2011 at 8:48 PM, Unga <unga888 at yahoo.com> wrote:
> Hi all
> Is av_malloc() and av_free() thread safe?
av_malloc() and av_free() just redirects to standard malloc() /
posix_memalign() / free() functions.
The main difference is that them ensure alignment for some instructions like
SSE / MMX and so on available on your CPU and used in FFmpeg

No global storage and no any advanced memory management are implemented in
Thus yes - these FFmpeg functions should be thread-safe if memory allocator
of your CRT library is thread-safe ;) (generally it is).
Kirill Gavrilov,
Software designer.
<kirill at sview.ru>

More information about the ffmpeg-user mailing list