diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-01-24 20:36:55 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-01-28 11:00:01 +0100 |
commit | 341d0419e1291d5af524405d21d564aaf23dd409 (patch) | |
tree | 7b8368108f744a56be591f0443e08bcd6a55b40e /libavcodec/vbnenc.c | |
parent | 4f58372c10dfc5d8c4ae46738b5a1c79633ee5ff (diff) | |
download | ffmpeg-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/vbnenc.c')
-rw-r--r-- | libavcodec/vbnenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vbnenc.c b/libavcodec/vbnenc.c index 01c2482bff..abdc33c2c9 100644 --- a/libavcodec/vbnenc.c +++ b/libavcodec/vbnenc.c @@ -114,7 +114,7 @@ static int vbn_encode(AVCodecContext *avctx, AVPacket *pkt, ctx->enc.frame_data.in = (frame->height - 1) * frame->linesize[0] + frame->data[0]; ctx->enc.stride = -frame->linesize[0]; ctx->enc.tex_data.out = pkt->data + VBN_HEADER_SIZE; - avctx->execute2(avctx, ff_texturedsp_compress_thread, &ctx->enc, NULL, ctx->enc.slice_count); + ff_texturedsp_exec_compress_threads(avctx, &ctx->enc); } else { const uint8_t *flipped = frame->data[0] + frame->linesize[0] * (frame->height - 1); av_image_copy_plane(pkt->data + VBN_HEADER_SIZE, linesize, flipped, -frame->linesize[0], linesize, frame->height); |