-
Rémi Denis-Courmont authored
av_set_cpu_flags_mask() is not thread-safe. So are the first call to av_get_cpu_flags() after loading libavutil, and the first call to av_get_cpu_flags() after a call to av_set_cpu_flags_mask(). So call those under the avcodec lock during initialization.
cac55911