On Fri, May 20, 2005 at 12:24:46AM +0200, H. Steuer wrote:
Hi Rich,
thanks for your answer. what exactly do you mean "lock around the main init functions"? i create a new thread and use ffmpeg function inside of this thread only. so there are only local variables to that function. the only function thats called outside that thread is av_register_all(). what exactly do i need to put mutexes or something around? or do you have any hints where i can do some reading about it?
yes, no other calls to libavcodec may be made during av_register_all, and possibly also during codec context init functions. i forget the exact rules. maybe it's in the documentation? rich p.s. please don't top-post and pleace wrap your messages at <80 characters. otherwise it's very hard to read your emails.