forked from FFmpeg/FFmpeg
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:
parent
4368e86a02
commit
94dd8f421e
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue