<HTML><BODY><div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16609220320643030910_BODY">I do not konw. I notice that vf_scale() is not using<br>sws_alloc_context(), then setting options then sws_init_context() while<br>you use sws_getContext(), which includes sws_init_context(), and then<br>you set the threads options. Therefore, I suspect you need to set the<br>threads options before sws_init_context() is called.</div></div></div></div></blockquote></div><div>I think I've started to understand how it works — ffmpeg does not use SwsContext / sws_getContext / sws_scale from exlample muxing.c, but AVFilterContext for scale</div><div><div><div> </div><div>But why how to set threads for mjpeg codec context!?</div></div></div><div> </div><div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div><div class="js-helper js-readmsg-msg"><div><div>Please remember that top-posting is forbidden on this mailing-list; if<br>you do not know what it means look it up.</div></div></div></div></blockquote></div><div>Ок.</div><div><div> </div></div></BODY></HTML>