[FFmpeg-devel] [PATCH] swscale: Altivec does not depend on GPL.
Michael Niedermayer
michaelni
Sun Apr 5 22:57:51 CEST 2009
On Sun, Apr 05, 2009 at 02:09:27PM -0300, Ramiro Polla wrote:
> Hi,
>
> This fixes a build error reported by a vlc dev in which
> RUNTIME_CPUDETECT and GPL were specified.
>
> Ramiro Polla
> From 268e024ce67174fd0f9aa7bc154ee39eec22e50c Mon Sep 17 00:00:00 2001
> From: ramiro <ramiro at ramiro-q6600.(none)>
> Date: Sun, 5 Apr 2009 14:02:16 -0300
> Subject: [PATCH] swscale: Altivec does not depend on GPL.
>
> ---
> swscale.c | 17 ++++++++---------
> 1 files changed, 8 insertions(+), 9 deletions(-)
>
> diff --git a/swscale.c b/swscale.c
> index fbc5e1d..bcfc688 100644
> --- a/swscale.c
> +++ b/swscale.c
> @@ -1096,13 +1096,12 @@ static void fillPlane(uint8_t* plane, int stride, int width, int height, int y,
>
> //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 && !HAVE_ALTIVEC) || (HAVE_MMX && !CONFIG_GPL) || defined (RUNTIME_CPUDETECT)
> #define COMPILE_C
> #endif
HAVE_MMX && !CONFIG_GPL should be false
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090405/fbe4d3fe/attachment.pgp>
More information about the ffmpeg-devel
mailing list