AVCodecContext.thread_safe_callbacks

Set by the client if its custom get_buffer() callback can be called synchronously from another thread, which allows faster multithreaded decoding. draw_horiz_band() will be called from other threads regardless of this setting. Ignored if the default get_buffer() is used. - encoding: Set by user. - decoding: Set by user.

struct AVCodecContext
int thread_safe_callbacks;

Meta