Re: [FFmpeg-devel] [PATCH] avcodec/pthread_slice: Don't use static variable, fix race

2020-12-02 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-11-29 00:28:51) > ff_slice_thread_init() uses a static variable to hold a function > pointer, although the value of said pointer needn't be saved between > different runs of this function at all; > > The reason for this being so is probably that said pointer points

[FFmpeg-devel] [PATCH] avcodec/pthread_slice: Don't use static variable, fix race

2020-11-28 Thread Andreas Rheinhardt
ff_slice_thread_init() uses a static variable to hold a function pointer, although the value of said pointer needn't be saved between different runs of this function at all; The reason for this being so is probably that said pointer points to a static function (if used); but storage class specifie