[FFmpeg-devel] [PATCH v2 01/18] avcodec/pthread_slice: Don't reinitialise initialised mutex

Anton Khirnov anton at khirnov.net
Fri Jul 1 14:05:46 EEST 2022


Quoting Andreas Rheinhardt (2022-06-30 23:48:00)
> It results in undefined behaviour. Instead initialize the mutexes
> and condition variables once during init (and check these
> initializations).
> 
> Also combine the corresponding mutex and condition variable
> into one structure so that one can allocate their array
> jointly.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> Now also adding the fallback function in case threads are disabled.

LGTM

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list