[FFmpeg-devel] [PATCH 26/39] avcodec/h263data, ituh263*: Make initializing RL inter table thread-safe
Anton Khirnov
anton at khirnov.net
Mon Jan 18 14:10:48 EET 2021
Quoting Andreas Rheinhardt (2020-12-10 12:16:44)
> Up until now, ff_h263_rl_inter was initialized by both ituh263dec and
> ituh263enc; this is an obstacle in making the codecs that use this code
> init-threadsafe.
>
> This obstacle is eliminated by only initializing this RLTable from
> a single place that is guarded by a dedicated AVOnce.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavcodec/h263data.c | 16 ++++++++++++++--
> libavcodec/h263data.h | 2 +-
> libavcodec/ituh263dec.c | 2 +-
> libavcodec/ituh263enc.c | 5 +++--
> 4 files changed, 19 insertions(+), 6 deletions(-)
Ok
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list