Commit 7e99475ce9 for ffmpeg

commit 7e99475ce91fc8e6eb76baa768418ba7dbbf07a4
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sun Oct 4 03:35:39 2026 +0200

    avfilter/video: factor set_link_props() out of ff_default_get_video_buffer2()

    Assisted-by: Claude

diff --git a/libavfilter/video.c b/libavfilter/video.c
index 0f4539869e..46956b2d27 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -46,6 +46,15 @@ AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
     return ff_get_video_buffer(link->dst->outputs[0], w, h);
 }

+static void set_link_props(AVFrame *frame, const AVFilterLink *link)
+{
+    frame->sample_aspect_ratio = link->sample_aspect_ratio;
+    frame->colorspace  = link->colorspace;
+    frame->color_range = link->color_range;
+    frame->alpha_mode  = link->alpha_mode;
+    frame->chroma_location = link->chroma_location;
+}
+
 AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int align)
 {
     FilterLinkInternal *const li = ff_link_internal(link);
@@ -73,11 +82,7 @@ AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int alig
     if (!frame)
         return NULL;

-    frame->sample_aspect_ratio = link->sample_aspect_ratio;
-    frame->colorspace  = link->colorspace;
-    frame->color_range = link->color_range;
-    frame->alpha_mode  = link->alpha_mode;
-    frame->chroma_location = link->chroma_location;
+    set_link_props(frame, link);

     return frame;
 }