title: Thread Safety of LibAv/FFMpeg?
body: <p>Is LibAV/FFMpeg thread safe? For example. Could I read from a file using AVFormatContext* in one thread and decode the read packet it in another with simple additions of mutexes or is the thread safetyness of the library a &quot;don't know don't care&quot; type deal? I know that libav has basic support for encoder threads but I'm trying more of a blackbox type approach where I break it up into multiple threads (Source -&gt; Decoder -&gt; Filter -&gt; Encoder -&gt; Sink) and trying to understand the complications of such.</p>
  <p>Anyone with any experience with ffmpeg and threads and would like to chime in with any other info pertinent to this would also be greatly appreciated.</p>