diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-30 17:00:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-25 23:31:37 +0200 |
commit | 13b3e84a4fc9cf2ecfeaa7a9ed148eda496419a6 (patch) | |
tree | c131be89861099cd3cf97ce15a971a9c57f48ef0 /libavcodec/loongarch/hevc_idct_lsx.c | |
parent | 72d5ce9fa6cd67497fbfffc97031cb6b7ab23c6d (diff) | |
download | ffmpeg-13b3e84a4fc9cf2ecfeaa7a9ed148eda496419a6.tar.gz |
avcodec/hevc_cabac: 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_cabac.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 'libavcodec/loongarch/hevc_idct_lsx.c')
0 files changed, 0 insertions, 0 deletions