Quoting Andreas Rheinhardt (2020-12-10 12:16:51)
> Up until now, both the msmpeg4 decoders and encoders initialized several
> RLTables common to them (the decoders also initialized the VLCs of these
> RLTables). This is an obstacle to making these codecs init-threadsafe.
> So move this initialization to ff_msmpeg4_common_init() that already
> contains this initialization code. This allows to reuse the AVOnce used
> for initializing ff_v2_dc_lum/chroma_table which automatically makes
> initializing these RLTables thread-safe.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com>
> ---
>  libavcodec/msmpeg4.c     | 12 +++++++++++-
>  libavcodec/msmpeg4data.c |  1 -
>  libavcodec/msmpeg4data.h |  1 -
>  libavcodec/msmpeg4dec.c  |  5 +----
>  libavcodec/msmpeg4enc.c  |  3 ---
>  5 files changed, 12 insertions(+), 10 deletions(-)

LGTM

-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to