diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-01-24 17:44:59 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-01-28 10:52:24 +0100 |
commit | 916f01674178b0949b8d432b0d192169cc98b733 (patch) | |
tree | b632acc7fda48008fdf1fb278a8ca783d04c9955 /tools/ismindex.c | |
parent | 555879ca7cf50f265c4beae365cc5142f3eb660e (diff) | |
download | ffmpeg-916f01674178b0949b8d432b0d192169cc98b733.tar.gz |
avcodec/dxvenc: Fix data races with slice threading
The old code set a common struct from each thread;
this only "worked" (but is still UB) because the values
written are the same for each thread.
Fix this by moving the assignments to the main thread.
(This also avoids casting const away from a const AVFrame*.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/ismindex.c')
0 files changed, 0 insertions, 0 deletions