[FFmpeg-devel] default lock mechanism in libavcodec/utils.c

wm4 nfxjfg at googlemail.com
Thu Mar 6 19:41:49 CET 2014

On Fri, 07 Mar 2014 00:02:05 +0530
Anshul <anshul.ffmpeg at gmail.com> wrote:

> Michael Niedermayer <michaelni at gmx.at> wrote:

> >it appears there are multiple people in this thread who are against
> >this patch
> >
> >also its documentation is incomplete, it does not state when it is safe
> >and when it is not safe to use. And i suspect once you completely
> >document that and read this documentation you would agree that this
> >function is quite easy to cause serious bugs and very hard
> >to use saftely.
> >
> >[...]
> Thanks i drop the idea

It might still be a good idea to change the code so that no global init
function is needed, and that you get a clean valgrind report. I think
it's possible, but probably requires some juggling with platforms like
Windows and OS/2.

More information about the ffmpeg-devel mailing list