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>
This commit is contained in:
Andreas Rheinhardt 2022-07-23 04:28:03 +02:00
parent 4368e86a02
commit 94dd8f421e
1 changed files with 1 additions and 1 deletions

View File

@ -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,