avcodec/h264dec: Constify slices' pointer to the parent context

Modifying the main context by a slice thread is racy;
so constify the pointer to it in H264SliceContext.
The code itself was already compatible with this change.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-03-24 20:49:20 +01:00
parent e944ab796d
commit 50c35d069a
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ typedef struct H264Ref {
} H264Ref;
typedef struct H264SliceContext {
struct H264Context *h264;
const struct H264Context *h264;
GetBitContext gb;
ERContext *er;