You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user