[FFmpeg-devel] [PATCH] Don't needlessly reinitialize ff_cos_## tables.
derek.buitenhuis at gmail.com
Fri Oct 23 14:15:54 CEST 2015
On 10/23/2015 12:35 PM, wm4 wrote:
> There are 2 possibilities:
> 1. Using ff_thread_once()
> 2. Not using global tables, but moving them to per-instance contexts
> Both should be fine, but I think 2. is preferred.
I think 1 makes more sense in this case, since sin and cos are
widely used, and not codec-specific.
More information about the ffmpeg-devel