mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
lsws/yuv2rgb: Fix yuva2rgb32 on big endian hardware.
This commit is contained in:
parent
c8e8092543
commit
9b0510a8e3
@ -28,7 +28,7 @@
|
||||
|
||||
#define LIBSWSCALE_VERSION_MAJOR 5
|
||||
#define LIBSWSCALE_VERSION_MINOR 0
|
||||
#define LIBSWSCALE_VERSION_MICRO 100
|
||||
#define LIBSWSCALE_VERSION_MICRO 101
|
||||
|
||||
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
|
||||
LIBSWSCALE_VERSION_MINOR, \
|
||||
|
@ -267,7 +267,11 @@ ENDYUV2RGBLINE(8, 1)
|
||||
PUTRGB(dst_2, py_2, 0);
|
||||
ENDYUV2RGBFUNC()
|
||||
|
||||
#if HAVE_BIGENDIAN
|
||||
YUV2RGBFUNC(yuva2argb_c, uint32_t, 1)
|
||||
#else
|
||||
YUV2RGBFUNC(yuva2rgba_c, uint32_t, 1)
|
||||
#endif
|
||||
LOADCHROMA(0);
|
||||
PUTRGBA(dst_1, py_1, pa_1, 0, 24);
|
||||
PUTRGBA(dst_2, py_2, pa_2, 0, 24);
|
||||
@ -301,7 +305,11 @@ ENDYUV2RGBLINE(8, 1)
|
||||
PUTRGBA(dst_2, py_2, pa_2, 0, 24);
|
||||
ENDYUV2RGBFUNC()
|
||||
|
||||
#if HAVE_BIGENDIAN
|
||||
YUV2RGBFUNC(yuva2rgba_c, uint32_t, 1)
|
||||
#else
|
||||
YUV2RGBFUNC(yuva2argb_c, uint32_t, 1)
|
||||
#endif
|
||||
LOADCHROMA(0);
|
||||
PUTRGBA(dst_1, py_1, pa_1, 0, 0);
|
||||
PUTRGBA(dst_2, py_2, pa_2, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user