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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new e19fadf1de avfilter/vf_morpho: remove unused plane_f and plane_g 
buffers
e19fadf1de is described below

commit e19fadf1de1000b9affb79ad0dfff36449705e26
Author:     romainhedouin <[email protected]>
AuthorDate: Sun Nov 1 22:12:31 2026 +0100
Commit:     romainhedouin <[email protected]>
CommitDate: Sun Nov 1 22:12:31 2026 +0100

    avfilter/vf_morpho: remove unused plane_f and plane_g buffers
    
    The filter allocates two int64_t arrays with one entry per output
    pixel, plane_f and plane_g, but nothing reads or writes them. Remove
    them. The output is unchanged.
    
    Noticed during a review sweep of ffmpeg using an LLM.
    
    Signed-off-by: romainhedouin <[email protected]>
---
 libavfilter/vf_morpho.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c
index 342ead266c..29aeef8633 100644
--- a/libavfilter/vf_morpho.c
+++ b/libavfilter/vf_morpho.c
@@ -121,8 +121,6 @@ typedef struct MorphoContext {
     int got_structure[4];
 
     AVFrame *temp;
-
-    int64_t *plane_f, *plane_g;
 } MorphoContext;
 
 #define OFFSET(x) offsetof(MorphoContext, x)
@@ -1024,11 +1022,6 @@ static int config_output(AVFilterLink *outlink)
     if (!s->temp)
         return AVERROR(ENOMEM);
 
-    s->plane_f = av_calloc(outlink->w * outlink->h, sizeof(*s->plane_f));
-    s->plane_g = av_calloc(outlink->w * outlink->h, sizeof(*s->plane_g));
-    if (!s->plane_f || !s->plane_g)
-        return AVERROR(ENOMEM);
-
     return 0;
 }
 
@@ -1051,8 +1044,6 @@ static av_cold void uninit(AVFilterContext *ctx)
     ff_framesync_uninit(&s->fs);
 
     av_frame_free(&s->temp);
-    av_freep(&s->plane_f);
-    av_freep(&s->plane_g);
 }
 
 static const AVFilterPad morpho_inputs[] = {

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