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

Git pushed a commit to branch master
in repository ffmpeg.

commit 7e99475ce91fc8e6eb76baa768418ba7dbbf07a4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Oct 4 03:35:39 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Oct 21 19:32:23 2026 +0000

    avfilter/video: factor set_link_props() out of 
ff_default_get_video_buffer2()
    
    Assisted-by: Claude
---
 libavfilter/video.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

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

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