[SCM] FFmpeg packaging branch, master, updated. debian/0.5+svn20090609-2-12-gcd842cb

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Fri Aug 14 16:52:08 UTC 2009


The following commit has been merged in the master branch:
commit 6f5b79a2e80838f40f06a92a850255e141281982
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Thu Aug 13 12:44:59 2009 +0200

    Imported Upstream version 0.5+svn20090706

diff --git a/.svnrevision b/.svnrevision
index 7d414cf..39f21b4 100644
--- a/.svnrevision
+++ b/.svnrevision
@@ -1 +1 @@
-19134
+19352
diff --git a/configure b/configure
index 9181e79..fd11501 100755
--- a/configure
+++ b/configure
@@ -1699,7 +1699,6 @@ die_license_disabled gpl libfaad2
 die_license_disabled gpl libx264
 die_license_disabled gpl libxvid
 die_license_disabled gpl postproc
-die_license_disabled gpl swscale
 die_license_disabled gpl x11grab
 
 die_license_disabled nonfree libamr_nb
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 7c335f1..4338ace 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -955,13 +955,12 @@ static inline void yuv2rgbXinC_full(SwsContext *c, int16_t *lumFilter, int16_t *
 
 //Note: we have C, X86, MMX, MMX2, 3DNOW versions, there is no 3DNOW+MMX2 one
 //Plain C versions
-#if !HAVE_MMX || defined (RUNTIME_CPUDETECT) || !CONFIG_GPL
+#if ((!HAVE_MMX || !CONFIG_GPL) && !HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)
 #define COMPILE_C
 #endif
 
 #if ARCH_PPC
-#if (HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)) && CONFIG_GPL
-#undef COMPILE_C
+#if HAVE_ALTIVEC || defined (RUNTIME_CPUDETECT)
 #define COMPILE_ALTIVEC
 #endif
 #endif //ARCH_PPC
@@ -1637,8 +1636,8 @@ static void globalInit(void){
 
 static SwsFunc getSwsFunc(int flags){
 
-#if defined(RUNTIME_CPUDETECT) && CONFIG_GPL
-#if ARCH_X86
+#if defined(RUNTIME_CPUDETECT)
+#if ARCH_X86 && CONFIG_GPL
     // ordered per speed fastest first
     if (flags & SWS_CPU_CAPS_MMX2)
         return swScale_MMX2;
@@ -1657,7 +1656,7 @@ static SwsFunc getSwsFunc(int flags){
         return swScale_C;
 #endif
     return swScale_C;
-#endif /* ARCH_X86 */
+#endif /* ARCH_X86 && CONFIG_GPL */
 #else //RUNTIME_CPUDETECT
 #if   HAVE_MMX2
     return swScale_MMX2;
@@ -2194,7 +2193,7 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d
         __asm__ volatile("emms\n\t"::: "memory");
 #endif
 
-#if !defined(RUNTIME_CPUDETECT) || !CONFIG_GPL //ensure that the flags match the compiled variant if cpudetect is off
+#if !defined(RUNTIME_CPUDETECT) //ensure that the flags match the compiled variant if cpudetect is off
     flags &= ~(SWS_CPU_CAPS_MMX|SWS_CPU_CAPS_MMX2|SWS_CPU_CAPS_3DNOW|SWS_CPU_CAPS_ALTIVEC|SWS_CPU_CAPS_BFIN);
 #if   HAVE_MMX2
     flags |= SWS_CPU_CAPS_MMX|SWS_CPU_CAPS_MMX2;
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 65af412..c95d07c 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -453,7 +453,7 @@ SwsFunc sws_yuv2rgb_get_func_ptr(SwsContext *c)
 #if CONFIG_MLIB
     t = sws_yuv2rgb_init_mlib(c);
 #endif
-#if HAVE_ALTIVEC && CONFIG_GPL
+#if HAVE_ALTIVEC
     if (c->flags & SWS_CPU_CAPS_ALTIVEC)
         t = sws_yuv2rgb_init_altivec(c);
 #endif

-- 
FFmpeg packaging



More information about the pkg-multimedia-commits mailing list