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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5b38e6eafbcc47d9e1643e463e263986a2d027e3
Author:     Lynne <[email protected]>
AuthorDate: Fri May 22 22:57:35 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Fri May 22 23:06:42 2026 +0900

    apv_decode: add update_thread_context callback
    
    An earliear commit added hwaccel hooks and a pix_fmt internal state
    but did not synchronize its state when using frame threading with
    a hwaccel.
---
 libavcodec/apv_decode.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c
index c916b2328e..c0615ab410 100644
--- a/libavcodec/apv_decode.c
+++ b/libavcodec/apv_decode.c
@@ -591,6 +591,18 @@ static int apv_receive_frame(AVCodecContext *avctx, 
AVFrame *frame)
     return err;
 }
 
+#if HAVE_THREADS
+static int update_thread_context(AVCodecContext *dst, const AVCodecContext 
*src)
+{
+    APVDecodeContext *asrc = src->priv_data;
+    APVDecodeContext *adst = dst->priv_data;
+
+    adst->pix_fmt = asrc->pix_fmt;
+
+    return 0;
+}
+#endif
+
 const FFCodec ff_apv_decoder = {
     .p.name                = "apv",
     CODEC_LONG_NAME("Advanced Professional Video"),
@@ -601,6 +613,7 @@ const FFCodec ff_apv_decoder = {
     .flush                 = apv_decode_flush,
     .close                 = apv_decode_close,
     FF_CODEC_RECEIVE_FRAME_CB(apv_receive_frame),
+    UPDATE_THREAD_CONTEXT(update_thread_context),
     .p.capabilities        = AV_CODEC_CAP_DR1 |
                              AV_CODEC_CAP_SLICE_THREADS |
                              AV_CODEC_CAP_FRAME_THREADS,

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

Reply via email to