[FFmpeg-devel] [PATCH 45/45] avcodec/utils: Remove ff_codec_open2_recursive()
Anton Khirnov
anton at khirnov.net
Fri Dec 4 14:12:57 EET 2020
Quoting Andreas Rheinhardt (2020-11-27 02:02:49)
> This function existed to enable codecs with non-threadsafe init functions
> to initialize other codecs despite the fact that normally no two codecs
> with non-threadsafe init functions can be initialized at the same time
> (there is a mutex guarding this). Yet there are no users of this
> function any more as all users have been made thread-safe (switching
> away from ff_codec_open2_recursive() was required for this as said
> function requires the caller to hold the lock to the mutex guarding the
> initializations and this is only true for codecs with the
> FF_CODEC_CAP_INIT_THREADSAFE flag unset); so remove it.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavcodec/internal.h | 7 -------
> libavcodec/utils.c | 12 ------------
> 2 files changed, 19 deletions(-)
Awesome!
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list