aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-07 04:49:27 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-12 06:00:14 +0200
commit3c26773ae28ebd6a549491d432a6990450b068cf (patch)
treef1993c04a8d762de1b9aa80e95dea41cb6df7eac /libavcodec/vc1.h
parentb43e946b71e144a4ce5e83cd18e5a07155edb26f (diff)
downloadffmpeg-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/vc1.h')
0 files changed, 0 insertions, 0 deletions