diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-23 04:35:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-31 04:22:14 +0200 |
commit | 9c4f7d1e880a000a070f445386c870427e57971c (patch) | |
tree | b74757d90a26fbb133e60d8b15ab04440adc5635 /libavcodec | |
parent | 94dd8f421eedf58c3399f25dee169790b28c614b (diff) | |
download | ffmpeg-9c4f7d1e880a000a070f445386c870427e57971c.tar.gz |
avcodec/vp8: Constify slice threads' ptr to main context
Modifying the main context from a slice thread is (usually)
a data race, so it must not happen. So only use a pointer to const
to access the main context.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 2687aeb1f8..7a151feb79 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -2619,7 +2619,7 @@ static av_always_inline int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { - VP8Context *s = avctx->priv_data; + const VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[jobnr]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; |