mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/dxv: 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
a18c372390
commit
5ad29e1590
@ -193,7 +193,7 @@ static int yao_block(uint8_t *plane0, ptrdiff_t stride0,
|
||||
static int decompress_texture_thread(AVCodecContext *avctx, void *arg,
|
||||
int slice, int thread_nb)
|
||||
{
|
||||
DXVContext *ctx = avctx->priv_data;
|
||||
const DXVContext *ctx = avctx->priv_data;
|
||||
AVFrame *frame = arg;
|
||||
const uint8_t *d = ctx->tex_data;
|
||||
int w_block = avctx->coded_width / ctx->texture_block_w;
|
||||
|
Loading…
Reference in New Issue
Block a user