aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/h264pred_mmi.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-21 06:24:04 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-19 01:14:39 +0100
commit17605d1a4afa5761271b27b2aea756a772ca0efc (patch)
tree9f8321503e30ba2782c3218af3fe68c24e3859cd /libavcodec/mips/h264pred_mmi.c
parentdfd06ee710b547e0027a38f63cabe868e9ef1a3c (diff)
downloadffmpeg-17605d1a4afa5761271b27b2aea756a772ca0efc.tar.gz
avcodec/ffv1dec: Remove redundant writes, fix races
Every modification of the data that is copied in update_thread_context() is a data race if it happens after ff_thread_finish_setup. ffv1dec's update_thread_context() simply uses memcpy for updating the new context, so that every modification of the src's context is a race. Some of these modifications are unnecessary: picture_number is write-only for the decoder and cur will be reset when decoding the next frame anyway. So remove them. And while just at it, also don't set cur for the slice contexts as this variable is write-only. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mips/h264pred_mmi.c')
0 files changed, 0 insertions, 0 deletions