]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg-fix-noaltivec.patch
live: fix unsafe use of setlocale()
[vlc] / extras / contrib / src / Patches / ffmpeg-fix-noaltivec.patch
1 Index: swscale.c
2 ===================================================================
3 --- swscale.c   (revision 26515)
4 +++ swscale.c   (working copy)
5 @@ -880,7 +880,7 @@
6  #endif
7  
8  #ifdef ARCH_POWERPC
9 -#if (defined (HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
10 +#if (defined (HAVE_ALTIVEC)) && defined (CONFIG_GPL)
11  #define COMPILE_ALTIVEC
12  #endif //HAVE_ALTIVEC
13  #endif //ARCH_POWERPC
14 @@ -1553,11 +1553,13 @@
15  
16  #else
17  #ifdef ARCH_POWERPC
18 +#ifdef COMPILE_ALTIVEC
19      if (flags & SWS_CPU_CAPS_ALTIVEC)
20          return swScale_altivec;
21      else
22          return swScale_C;
23  #endif
24 +#endif
25      return swScale_C;
26  #endif /* defined(ARCH_X86) */
27  #else //RUNTIME_CPUDETECT