[FFmpeg-devel] [PATCH] Don't needlessly reinitialize ff_cos_## tables.

Dale Curtis dalecurtis at chromium.org
Sat Oct 24 00:36:32 CEST 2015


http://ffmpeg.org/pipermail/ffmpeg-devel/2015-October/181938.html
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
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list