This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.0
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/9.0 by this push:
     new 8d9bd942ab apv_decode: call ff_thread_finish_setup()
8d9bd942ab is described below

commit 8d9bd942ab4d4919deb00f5caa9158824baaeab2
Author:     Lynne <[email protected]>
AuthorDate: Sat Jul 4 13:31:15 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Sat Jul 11 17:11:21 2026 +0900

    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."
    
    (cherry picked from commit 300cac3078185718de65bfd66b75b5dcfc57a5c0)
---
 libavcodec/apv_decode.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c
index c44d5d21ad..05ce42da44 100644
--- a/libavcodec/apv_decode.c
+++ b/libavcodec/apv_decode.c
@@ -384,11 +384,15 @@ static int apv_decode(AVCodecContext *avctx, AVFrame 
*output,
     apv_derive_tile_info(tile_info, &input->frame_header);
 
     if (avctx->hwaccel) {
-        const FFHWAccel *hwaccel = ffhwaccel(avctx->hwaccel);
-
         err = ff_hwaccel_frame_priv_alloc(avctx, 
&apv->hwaccel_picture_private);
         if (err < 0)
             return err;
+    }
+
+    ff_thread_finish_setup(avctx);
+
+    if (avctx->hwaccel) {
+        const FFHWAccel *hwaccel = ffhwaccel(avctx->hwaccel);
 
         err = hwaccel->start_frame(avctx, apv->pkt->buf,
                                    apv->pkt->data, apv->pkt->size);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to