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.

2009/3/1 Vadim Lebedev <[email protected]>

> I would suggest
>
> to refactor a little bit the main of the ffmpeg so that
>
>
> >  avcodec_register_all();
> >    avdevice_register_all();
> >    av_register_all();
>
>
> are called ONCE  upon loaing of your DLL and npt inside of the  main
>
>
> Thanks
> Vadim
> _______________________________________________
> 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