mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 01:31:00 +00:00
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:
parent
e944ab796d
commit
50c35d069a
@ -168,7 +168,7 @@ typedef struct H264Ref {
|
||||
} H264Ref;
|
||||
|
||||
typedef struct H264SliceContext {
|
||||
struct H264Context *h264;
|
||||
const struct H264Context *h264;
|
||||
GetBitContext gb;
|
||||
ERContext *er;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user