This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 12750ed51202484649809a2c5a2d00d82315a597 Author: Ramiro Polla <[email protected]> AuthorDate: Thu Jun 18 20:25:34 2026 +0200 Commit: Ramiro Polla <[email protected]> CommitDate: Fri Jun 19 14:32:44 2026 +0000 swscale/lut3d: pass SwsFormat by pointer instead of value in ff_sws_lut3d_pick_pixfmt() --- libswscale/graph.c | 4 ++-- libswscale/lut3d.c | 2 +- libswscale/lut3d.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libswscale/graph.c b/libswscale/graph.c index f12c493c49..c9bca56b58 100644 --- a/libswscale/graph.c +++ b/libswscale/graph.c @@ -756,8 +756,8 @@ static int adapt_colors(SwsGraph *graph, SwsFormat src, SwsFormat dst, if (!lut) return AVERROR(ENOMEM); - fmt_in = ff_sws_lut3d_pick_pixfmt(src, 0); - fmt_out = ff_sws_lut3d_pick_pixfmt(dst, 1); + fmt_in = ff_sws_lut3d_pick_pixfmt(&src, 0); + fmt_out = ff_sws_lut3d_pick_pixfmt(&dst, 1); if (fmt_in != src.format) { SwsFormat tmp = src; tmp.format = fmt_in; diff --git a/libswscale/lut3d.c b/libswscale/lut3d.c index 535694e61c..d701ca2ba5 100644 --- a/libswscale/lut3d.c +++ b/libswscale/lut3d.c @@ -49,7 +49,7 @@ bool ff_sws_lut3d_test_fmt(enum AVPixelFormat fmt, int output) return fmt == AV_PIX_FMT_RGBA64; } -enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(SwsFormat fmt, int output) +enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(const SwsFormat *fmt, int output) { return AV_PIX_FMT_RGBA64; } diff --git a/libswscale/lut3d.h b/libswscale/lut3d.h index 273059f9a1..d2de851604 100644 --- a/libswscale/lut3d.h +++ b/libswscale/lut3d.h @@ -70,7 +70,7 @@ bool ff_sws_lut3d_test_fmt(enum AVPixelFormat fmt, int output); /** * Pick the best compatible pixfmt for a given SwsFormat. */ -enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(SwsFormat fmt, int output); +enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(const SwsFormat *fmt, int output); /** * Recalculate the (static) 3DLUT state with new settings. This will recompute _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
