aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-21 19:25:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-30 23:05:42 +0200
commit0cfc7418bbf55f7b316862598c4e59434c65b3a8 (patch)
tree4715c121f9f3c8b4cc5bb76c049727f53e25fe26 /tools/python
parent5ba06ad0b87740080a7bc7ddf58c5a65c24c9262 (diff)
downloadffmpeg-0cfc7418bbf55f7b316862598c4e59434c65b3a8.tar.gz
avcodec/ffv1dec: Fix data races emanating from copying whole context
When using frame threading, the FFV1 decoder's update_thread_context() function copies the whole context and afterwards restores some allocated fields with backups made earlier. Among these fields are the ThreadFrames and the source context's ThreadFrames can change concurrently without any synchronization, leading to data races which are undefined behaviour even if they don't lead to problems in practice (as the destination's own ThreadFrames are restored directly thereafter). Fix this by only copying the actually needed fields. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tools/python')
0 files changed, 0 insertions, 0 deletions