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 e28b9a7f35f34f1402202eb68acfca2134618ed1
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Nov 8 14:11:02 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:53 2026 +0100

    avfilter/vf_lcevc: wait for the flushed frames before collecting their base 
pictures
    
    LCEVC_FlushDecoder() only marks the pending frames as flushed, their
    base pictures become available once their tasks have run. uninit()
    collected the base pictures right after the flush, so the input frames
    attached to frames still pending at that point were never freed.
    
    Fixes: memleak
    
    Found during triage of the Fairy review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25134
    
    Memleak Replicated through UnModified FFmpeg with ASAN
    
    (cherry picked from commit 62fad741bad03f5541438e48cdc874c43a78097a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_lcevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_lcevc.c b/libavfilter/vf_lcevc.c
index 39ebd032ef..02d17e8023 100644
--- a/libavfilter/vf_lcevc.c
+++ b/libavfilter/vf_lcevc.c
@@ -447,7 +447,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     LCEVCContext *lcevc = ctx->priv;
 
-    LCEVC_FlushDecoder(lcevc->decoder);
+    LCEVC_SynchronizeDecoder(lcevc->decoder, 1);
     flush_bases(ctx);
     LCEVC_DestroyDecoder(lcevc->decoder);
     av_frame_free(&lcevc->out);

-- 
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