diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-23 04:28:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-31 04:21:51 +0200 |
commit | 94dd8f421eedf58c3399f25dee169790b28c614b (patch) | |
tree | 2262415cd184bb78e1720416449e3f4bce19ced3 /libavcodec | |
parent | 4368e86a02b8dde9824b44923dc01834046ad360 (diff) |
avcodec/wavpack: 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.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wavpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 0e8d1286c2..c12e1d6ec6 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -1616,7 +1616,7 @@ static void wavpack_decode_flush(AVCodecContext *avctx) static int dsd_channel(AVCodecContext *avctx, void *frmptr, int jobnr, int threadnr) { - WavpackContext *s = avctx->priv_data; + const WavpackContext *s = avctx->priv_data; AVFrame *frame = frmptr; ff_dsd2pcm_translate (&s->dsdctx [jobnr], s->samples, 0, |