diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-27 15:53:48 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-29 18:34:30 +0100 |
commit | 218d1f76d46fc5b59a27d5ec9e88e821dc888d11 (patch) | |
tree | 5455b88d8bcbf683852f22e9594d64de8bb11da9 /tests/ref | |
parent | e13f0b9456a5028594090e4f6f10f0a9d76f1bd2 (diff) | |
download | ffmpeg-218d1f76d46fc5b59a27d5ec9e88e821dc888d11.tar.gz |
avcodec/jpeg2000dec: Move preparations to main thread, fix race
jpeg2000_decode_tile() (which is run concurrently by several threads
when using slice threading) currently modifies some joint values
before doing its actual work. This is a data race that happens to work
because all threads set the same values; but it is nevertheless
undefined behaviour.
Fix this by performing said preparatory work in the main thread instead.
This fixes the vsynth(1|2|_lena)-jpeg2000(-97)? FATE-tests when using
TSAN and slice threading.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref')
0 files changed, 0 insertions, 0 deletions