aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dxvenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-01-24 20:36:55 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-01-28 11:00:01 +0100
commit341d0419e1291d5af524405d21d564aaf23dd409 (patch)
tree7b8368108f744a56be591f0443e08bcd6a55b40e /libavcodec/dxvenc.c
parent4f58372c10dfc5d8c4ae46738b5a1c79633ee5ff (diff)
downloadffmpeg-341d0419e1291d5af524405d21d564aaf23dd409.tar.gz
avcodec/texturedsp: Factor common code out
Namely calling avctx->execute2(avctx,...). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dxvenc.c')
-rw-r--r--libavcodec/dxvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxvenc.c b/libavcodec/dxvenc.c
index 280a965685..b274175689 100644
--- a/libavcodec/dxvenc.c
+++ b/libavcodec/dxvenc.c
@@ -236,7 +236,7 @@ static int dxv_encode(AVCodecContext *avctx, AVPacket *pkt,
ctx->enc.tex_data.out = ctx->tex_data;
ctx->enc.frame_data.in = frame->data[0];
ctx->enc.stride = frame->linesize[0];
- avctx->execute2(avctx, ff_texturedsp_compress_thread, &ctx->enc, NULL, ctx->enc.slice_count);
+ ff_texturedsp_exec_compress_threads(avctx, &ctx->enc);
} else {
/* unimplemented: YCoCg formats */
return AVERROR_INVALIDDATA;