0001-swscale-x86-yuv2rgb-Fix-build-without-SSSE3.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From bf8eae2d30a205bb76ac625e04c0351106981b9e Mon Sep 17 00:00:00 2001
  2. From: Parker Ernest <@>
  3. Date: Sun, 23 Feb 2020 13:22:42 +0100
  4. Subject: [PATCH] swscale/x86/yuv2rgb: Fix build without SSSE3
  5. commit fc6a5883d6af8cae0e96af84dda0ad74b360a084 breaks build on
  6. x86_64 CPUs which do not have SSSE3, e.g. AMD Phenom-II
  7. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  8. [bernd.kuhls@t-online.de:
  9. - retrieved from upstream patchwork:
  10. https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200223122256.23402-1-michael@niedermayer.cc/
  11. ]
  12. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  13. [yann.morin.1998@free.fr: fix reference top patchwork and SoB order]
  14. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
  15. ---
  16. libswscale/x86/yuv2rgb.c | 2 ++
  17. 1 file changed, 2 insertions(+)
  18. diff --git a/libswscale/x86/yuv2rgb.c b/libswscale/x86/yuv2rgb.c
  19. index c12e88cbb5..4791e5b93a 100644
  20. --- a/libswscale/x86/yuv2rgb.c
  21. +++ b/libswscale/x86/yuv2rgb.c
  22. @@ -83,6 +83,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
  23. #if HAVE_X86ASM
  24. int cpu_flags = av_get_cpu_flags();
  25. +#if HAVE_SSSE3
  26. if (EXTERNAL_SSSE3(cpu_flags)) {
  27. switch (c->dstFormat) {
  28. case AV_PIX_FMT_RGB32:
  29. @@ -111,6 +112,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c)
  30. return yuv420_rgb15_ssse3;
  31. }
  32. }
  33. +#endif
  34. if (EXTERNAL_MMXEXT(cpu_flags)) {
  35. switch (c->dstFormat) {
  36. --
  37. 2.26.2