[FFmpeg-devel] [PATCH] Don't needlessly reinitialize ff_cos_## tables.
dalecurtis at chromium.org
Sat Oct 24 00:36:32 CEST 2015
makes the changes to use ff_thread_once; this review may be abandoned.
On Fri, Oct 23, 2015 at 5:15 AM, Derek Buitenhuis
<derek.buitenhuis at gmail.com> wrote:
> 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.
> - Derek
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
More information about the ffmpeg-devel