aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/westwood_vqa.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-29 17:47:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-25 23:31:12 +0200
commit136ada2fc372e8fd2dcdc2b3b7256529ebcbe275 (patch)
tree4d2bb2209530dd38171de78b9144ab71df89c5d8 /libavformat/westwood_vqa.c
parent1837ae9d5f3eb8483c76dc708e68e466f9021cac (diff)
downloadffmpeg-136ada2fc372e8fd2dcdc2b3b7256529ebcbe275.tar.gz
avcodec/hevc_mvs: Pass HEVCLocalContext when slice-threading
The HEVC decoder has both HEVCContext and HEVCLocalContext structures. The latter is supposed to be the structure containing the per-slicethread state. Yet that is not how it is handled in practice: Each HEVCLocalContext has a unique HEVCContext allocated for it and each of these coincides except in exactly one field: The corresponding HEVCLocalContext. This makes it possible to pass the HEVCContext everywhere where logically a HEVCLocalContext should be used. This commit stops doing this for lavc/hevc_mvs.c; it also constifies everything that is possible in order to ensure that no slice thread accidentally modifies the main HEVCContext state. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/westwood_vqa.c')
0 files changed, 0 insertions, 0 deletions