[Ffmpeg-devel] List of non-thread safe functions

Stas Oskin stas.oskin
Thu Feb 8 14:46:09 CET 2007


Hi.

Thanks for the answer. So, it can be assumed that for a safe MT operation of
libavcodec, all avcodec functions calls should be protected by mutex?

Stas.

On 2/7/07, Fran?ois Revol <revol at free.fr> wrote:
>
> > Hi.
> >
> > I compiled the following list after searching through the mail
> > archives. Can
> > anyone add/change anything in this list?
> >
>
> There is not really any function in libavcodec that is threadsafe.
>
> > avcodec_init()
> > avcodec_register()
> > avcodec_register_all()
> > avcodec_find*()
> > avcodec_open()
> > close()
> > av_*alloc_static()
>
> Though several like those are the ones most likely used from several
> threads when having 1 thread / codec.
>
> You can probably find more references in the ml archives...
>
> http://search.gmane.org/?query=thread&group=gmane.comp.video.ffmpeg.devel
>
> Fran?ois.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>




More information about the ffmpeg-devel mailing list