Hi.

Sorry for barging in - to summarize are these all the functions that need to
be thread safe when working with libavcodec/format?

avcodec_register_all();
avdevice_register_all();
av_register_all();
avcodec_open();

avcodec_find_encoder()
avcodec_find_decoder()
av_find_stream_info()
avcodec_close()

Thanks.



2009/3/2 Michael Tison <[email protected]>

> > Yep, in my opinion (anyone please correct me if I'm wrong), the libavxxx
> > libs are reentrant , which means you can use them concurrently , provided
> > each thread manipulates its own set of data.
> > The calls to the xxx_register_all() functions, due to they global nature,
> > must be mutexed to ensure that they are not called concurrently if your
> code
> > might attempt to do so.
>
> Here's a list of other functions that also need locking:
> - avcodec_find_encoder()
> - avcodec_find_decoder()
> - av_find_stream_info()
> - avcodec_close()
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to