When compile with --enable-runtime-cpudetect,
libswscale/swscale_template.c will cause symbol redfined

---
 libswscale/swscale_template.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index c1a2d44..9450fd6 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -1828,6 +1828,7 @@ static inline void RENAME(nv21ToUV)(uint8_t *dstU, uint8_t
     RENAME(nvXXtoUV)(dstV, dstU, src1, width);
 }

+#ifndef YUV_NBPS
 // FIXME Maybe dither instead.
 #define YUV_NBPS(depth, endianness, rfunc) \
 static inline void endianness ## depth ## ToUV_c(uint8_t *dstU, uint8_t *dstV,
@@ -1852,6 +1853,7 @@ YUV_NBPS( 9, LE, AV_RL16)
 YUV_NBPS( 9, BE, AV_RB16)
 YUV_NBPS(10, LE, AV_RL16)
 YUV_NBPS(10, BE, AV_RB16)
+#endif

 #if COMPILE_TEMPLATE_MMX
 static inline void RENAME(bgr24ToY_mmx)(uint8_t *dst, const uint8_t *src, long
--
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to