This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6f52c88f45b468f8cafe98160d70ccf09be9a55d Author: Ramiro Polla <[email protected]> AuthorDate: Thu Jun 18 20:26:12 2026 +0200 Commit: Ramiro Polla <[email protected]> CommitDate: Fri Jun 19 14:32:44 2026 +0000 swscale/graph: pass SwsFormat by pointer instead of value in adapt_colors() --- libswscale/graph.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libswscale/graph.c b/libswscale/graph.c index c9bca56b58..3db3b98c7b 100644 --- a/libswscale/graph.c +++ b/libswscale/graph.c @@ -719,9 +719,12 @@ static void run_lut3d(const SwsFrame *out, const SwsFrame *in, int y, int h, out->linesize[0], pass->width, h); } -static int adapt_colors(SwsGraph *graph, SwsFormat src, SwsFormat dst, - SwsPass *input, SwsPass **output) +static int adapt_colors(SwsGraph *graph, const SwsFormat *src_fmt, + const SwsFormat *dst_fmt, SwsPass *input, + SwsPass **output) { + SwsFormat src = *src_fmt; + SwsFormat dst = *dst_fmt; enum AVPixelFormat fmt_in, fmt_out; SwsColorMap map = {0}; SwsLut3D *lut; @@ -790,7 +793,7 @@ static int init_passes(SwsGraph *graph) SwsPass *pass = NULL; /* read from main input image */ int ret; - ret = adapt_colors(graph, src, dst, pass, &pass); + ret = adapt_colors(graph, &src, &dst, pass, &pass); if (ret < 0) return ret; src.format = pass ? pass->format : src.format; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
