This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit ba987fe24d6713c4d4b3a15cebaeca18c41fbd31 Author: Niklas Haas <[email protected]> AuthorDate: Fri Oct 9 17:53:49 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Sat Oct 10 00:02:07 2026 +0000 swscale/format: remove switch/case hack (cosmetic) Signed-off-by: Niklas Haas <[email protected]> --- libswscale/format.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libswscale/format.c b/libswscale/format.c index a6530c2cd3..f8c6462982 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -1522,10 +1522,11 @@ int ff_sws_decode_colors(SwsContext *ctx, SwsPixelType type, .lin = fmt_decode_range(fmt, incomplete), })); - /* Final step, decode colorspace. XYZ formats carry no colorspace - * matrix; their transfer/primaries are handled by the color mapping - * layer, so treat them like RGB here. */ - switch (fmt->desc->flags & AV_PIX_FMT_FLAG_XYZ ? AVCOL_SPC_RGB : fmt->csp) { + if (fmt->desc->flags & AV_PIX_FMT_FLAG_XYZ) + return 0; /* XYZ formats are treated as colorspaceless */ + + /* Final step, decode colorspace */ + switch (fmt->csp) { case AVCOL_SPC_RGB: return 0; case AVCOL_SPC_UNSPECIFIED: -- 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]
