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

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

commit ddac89c1668fe7adcdf557cdd97da3734105838f
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Oct 19 22:08:13 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    avcodec/dpx: release a hwaccel picture left over by a failed frame
    
    A failing hwaccel call returned with the picture still allocated and the
    next frame failed the assertion in ff_hwaccel_frame_priv_alloc(). Release
    the picture before allocating the next one, as proresdec does.
    
    Fixes: IDrqnHVI4YX3
    Fixes: AISLE-2026-0150-00625
    Fixes: assertion failure
    Assertion failure Replicated through Modified FFmpeg with a failure injected
    into the Vulkan hwaccel, with -threads 1
    
    Found-by: Joshua Rogers (AISLE)
    
    The report suggested releasing the picture on the failure paths.
    
    (cherry picked from commit 170bbd41d36d595b7ba4e97abea6d064fa695692)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/dpx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index a4d9348618..5bbcda4741 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -773,6 +773,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p,
     buf =  avpkt->data + offset;
     dpx->frame = p;
 
+    av_refstruct_unref(&dpx->hwaccel_picture_private);
     ret = ff_hwaccel_frame_priv_alloc(avctx, &dpx->hwaccel_picture_private);
     if (ret < 0)
         return ret;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to