Commit e19fadf1de for ffmpeg

commit e19fadf1de1000b9affb79ad0dfff36449705e26
Author: romainhedouin <romain.hedouin@epitech.eu>
Date:   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 <romain.hedouin@epitech.eu>

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[] = {