summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-24 20:49:20 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-25 19:07:41 +0100
commit50c35d069a0d300d2d30986b277e9ab0c502d661 (patch)
tree01dfab5dbb2a872fb1e5cd6337f09154f14c86fa /libavcodec/h264dec.h
parente944ab796d9624b269424c5a6e2e82cf393b2884 (diff)
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>
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r--libavcodec/h264dec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index 0b9c5784a2..9a1ec1bace 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -168,7 +168,7 @@ typedef struct H264Ref {
} H264Ref;
typedef struct H264SliceContext {
- struct H264Context *h264;
+ const struct H264Context *h264;
GetBitContext gb;
ERContext *er;