PR #23698 opened by Lynne URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23698 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23698.patch
"[...] decoders with update_thread_context callback have to call ff_thread_finish_setup() themselves; it is not done implicitly in ff_thread_get_buffer() any more. Not doing so makes the decoder effectively single-threaded." Fixes #23679 >From 0e17dede06a4058d68539b03602db20438b6bc51 Mon Sep 17 00:00:00 2001 From: Lynne <[email protected]> Date: Sat, 4 Jul 2026 13:31:15 +0900 Subject: [PATCH] apv_decode: call ff_thread_finish_setup() "[...] decoders with update_thread_context callback have to call ff_thread_finish_setup() themselves; it is not done implicitly in ff_thread_get_buffer() any more. Not doing so makes the decoder effectively single-threaded." --- libavcodec/apv_decode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c index c44d5d21ad..beb9afd952 100644 --- a/libavcodec/apv_decode.c +++ b/libavcodec/apv_decode.c @@ -389,7 +389,11 @@ static int apv_decode(AVCodecContext *avctx, AVFrame *output, err = ff_hwaccel_frame_priv_alloc(avctx, &apv->hwaccel_picture_private); if (err < 0) return err; + } + ff_thread_finish_setup(avctx); + + if (avctx->hwaccel) { err = hwaccel->start_frame(avctx, apv->pkt->buf, apv->pkt->data, apv->pkt->size); if (err < 0) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
