]> git.sesse.net Git - ffmpeg/commit
swscale/rgb2rgb_template: use shuffle macro on big-endian arches
authorAndriy Gelman <andriy.gelman@gmail.com>
Mon, 30 Nov 2020 05:46:51 +0000 (00:46 -0500)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sun, 13 Dec 2020 04:07:22 +0000 (23:07 -0500)
commit1200264fc4122dbb58bd08861f926cd6448593eb
tree183a948e25ad955dd0be9732f5f122fb74e82860
parent0320dab265ef880b5b07cac1f9ebaa3fb5417f6a
swscale/rgb2rgb_template: use shuffle macro on big-endian arches

Fixes fate-qtrle-32bit on big-endian.

The macro does a simple byte swap on uint8 array without any casts, so
it's valid on big-endian arches.

The mentioned test was failing because the byteswap function
shuffle_bytes_3210_c() is used in the pixel format conversion
(argb->bgra).

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libswscale/rgb2rgb_template.c