summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-10 03:19:59 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-10 03:22:59 +0200
commit3a56ade1f32ddd118b0984497b7ec7184bdcef20 (patch)
tree381e9a9b051edb4327ac9847cd8cf2fe3ec6bb76 /libswscale
parent12138402652f28649e63629ef76fba8b71561afb (diff)
downloadffmpeg-streaming-3a56ade1f32ddd118b0984497b7ec7184bdcef20.zip
ffmpeg-streaming-3a56ade1f32ddd118b0984497b7ec7184bdcef20.tar.gz
lsws/rgb2rgb_template: Do not compile unneeded shuffle functions on big-endian.
Fixes the following warnings: In file included from libswscale/rgb2rgb.c:128:0: libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3210_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3012_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_1230_c' defined but not used
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/rgb2rgb_template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c
index fb7d663..f7385e3 100644
--- a/libswscale/rgb2rgb_template.c
+++ b/libswscale/rgb2rgb_template.c
@@ -342,6 +342,7 @@ static inline void shuffle_bytes_0321_c(const uint8_t *src, uint8_t *dst,
}
}
+#if !HAVE_BIGENDIAN
#define DEFINE_SHUFFLE_BYTES(name, a, b, c, d) \
static void shuffle_bytes_##name (const uint8_t *src, \
uint8_t *dst, int src_size) \
@@ -359,6 +360,7 @@ static void shuffle_bytes_##name (const uint8_t *src, \
DEFINE_SHUFFLE_BYTES(1230_c, 1, 2, 3, 0)
DEFINE_SHUFFLE_BYTES(3012_c, 3, 0, 1, 2)
DEFINE_SHUFFLE_BYTES(3210_c, 3, 2, 1, 0)
+#endif
static inline void rgb24tobgr24_c(const uint8_t *src, uint8_t *dst, int src_size)
{
OpenPOWER on IntegriCloud