From 50c35d069a0d300d2d30986b277e9ab0c502d661 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 24 Mar 2022 20:49:20 +0100 Subject: 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 Signed-off-by: Andreas Rheinhardt --- libavcodec/h264dec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h264dec.h') 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; -- cgit v1.2.3