This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit b46c21cf03f764ad7d8225921c89845215656f7b Author: Ramiro Polla <[email protected]> AuthorDate: Tue May 12 15:03:11 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sat Sep 19 17:00:37 2026 +0200 swscale/unscaled: fix rgbToRgbWrapper for non-native-endian formats The fix from 5fa2a65c11 introduced a regression for non-native-endian formats (such as rgb565be on a little-endian system). Reproducible with: $ ./libswscale/tests/swscale -unscaled 1 -src rgb565be -dst rgb24 Also: $ ./ffmpeg_g -i /opt/samples/jpegls/128.jls -vf "scale=size=512x512,format=rgb24,scale=flags=neighbor,format=rgb565be" -f rawvideo -vframes 1 -y rgb565be.raw $ magick -size 512x512 -endian MSB RGB565:rgb565be.raw output.png $ ./ffplay_g output.png (note: don't use ffmpeg to convert from rgb565be.raw to output for the test above since it will perform the same bug and cancel out the error) (cherry picked from commit d0a84c660a7b40d906e49dc6ae6d243b88d20aff) --- libswscale/swscale_unscaled.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index e3f0f34b26..4cc51a3a9f 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -1838,9 +1838,8 @@ static rgbConvFn findRgbConvFn(SwsInternal *c) const int dstId = c->dstFormatBpp; rgbConvFn conv = NULL; -#define IS_NOT_NE(bpp, desc) \ - (((bpp + 7) >> 3) == 2 && \ - (!(desc->flags & AV_PIX_FMT_FLAG_BE) != !HAVE_BIGENDIAN)) +#define IS_NOT_NE(Bpp, desc) \ + (Bpp == 2 && (!(desc->flags & AV_PIX_FMT_FLAG_BE) != !HAVE_BIGENDIAN)) #define CONV_IS(src, dst) (srcFormat == AV_PIX_FMT_##src && dstFormat == AV_PIX_FMT_##dst) -- 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]
