[libav-users] Thread safety of avcodec_copy_context()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[libav-users] Thread safety of avcodec_copy_context()

wl2776
Administrator
Hi all.
Is it possible to create AVCodecContext* variable in one thread and read from it (using avcodec_copy_context) in another thread without mutexes?

It is supposed, of course, that the first thread doesn't destroy this variable while reading.

Same question about AVFormatContext * - is it safe to read from it from another thread?