[FFmpeg-devel] [PATCH 44/45] avcodec/tiff: Make decoder init-threadsafe
Anton Khirnov
anton at khirnov.net
Fri Dec 4 14:11:33 EET 2020
Quoting Andreas Rheinhardt (2020-11-27 02:02:48)
> The only thing that stands in the way of adding the
> FF_CODEC_CAP_INIT_THREADSAFE flag to the TIFF decoder is its usage
> of ff_codec_open2_recursive(): This function requires its caller to hold
> the lock for the mutex that guards initialization of AVCodecContexts
> whose codecs have a non-threadsafe init function and only callers whose
> codec does not have the FF_CODEC_CAP_INIT_THREADSAFE flag set hold said
> lock (the others don't need to care about said lock). But one can set
> the flag if one switches to avcodec_open2() at the same time.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavcodec/tiff.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Ok
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list