[Libav-user] Effects of passing contexts (format, codec) between threads

Olzhas Zhumabek anonymous.from.applecity at gmail.com
Thu Aug 18 10:00:41 EEST 2022


Thank you for the answer!

> av_read_frame() is not thread safe, it can only be read from one thread.

 Does it have to be the same thread all the time? In my program, threads
change, but it is always one thread at a time, e.g. no simultaneous access.
I was wondering if it is error on my part of ffmpeg uses thread local
storage and I need to keep it in one thread.

Kind regards,
Olzhas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220818/2a4bdf86/attachment.htm>


More information about the Libav-user mailing list