[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.145,1.146

Michael Niedermayer michaelni
Mon Aug 1 16:38:08 CEST 2005


Hi

On Monday 01 August 2005 15:59, Christophe Massiot wrote:
> Hello,
>
> On Mon, Jul 25, 2005, Michael Niedermayer CVS wrote:
> > Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> > In directory mail:/var2/tmp/cvs-serv16486
> >
> > Modified Files:
> > 	utils.c
> > Log Message:
> > thread mess check for avcodec_open/close()
>
> What's the purpose of this ? Aren't avcodec_open/close() already
> thread-safe ? I understand there must be locking around avcodec_init(),
> but I fail to see why avcodec_open, which operates on *context, would
> need locking.

avcodec_open() initalizes various static tables, for example vlc decoding 
tables, tables containing the length in bits per motion vector and so on

-- 
Michael





More information about the ffmpeg-cvslog mailing list