diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-07 04:49:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-12 06:00:14 +0200 |
commit | 3c26773ae28ebd6a549491d432a6990450b068cf (patch) | |
tree | f1993c04a8d762de1b9aa80e95dea41cb6df7eac /libavcodec/x86/lossless_videoencdsp.asm | |
parent | b43e946b71e144a4ce5e83cd18e5a07155edb26f (diff) | |
download | ffmpeg-3c26773ae28ebd6a549491d432a6990450b068cf.tar.gz |
avcodec/jpeg2000dec: Make decoder init-threadsafe
The JPEG-2000 decoder and encoder share common luts; the decoder
initializes them once, guarded by a dedicated AVOnce, whereas
the encoder initializes them always during init. This means that
the decoder is not init-threadsafe; in fact there is a potential
data race because these luts can be initialized while an active
decoder/encoder is using them.
Fix this and make the decoder init-threadsafe by making the
initialization function guard initialization itself with a dedicated
AVOnce.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/x86/lossless_videoencdsp.asm')
0 files changed, 0 insertions, 0 deletions