<div dir="ltr"><div>Thank you for the answer! </div><div><br></div><div>> av_read_frame() is not thread safe, it can only be read from one thread.</div><div><br></div><div> 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.</div><div><br></div><div>Kind regards,</div><div>Olzhas</div></div>