[FFmpeg-soc] [PATCH] 2/4 sws_getContext: COMPILE_ALTIVEC changed to HAVE_ALTIVEC
Michael Niedermayer
michaelni at gmx.at
Wed Jun 11 07:09:21 CEST 2008
On Wed, Jun 11, 2008 at 02:34:03AM +0200, Keiji Costantini wrote:
>
> --
> Keiji Costantini
> >From 391c204e5696ae729b69b3f55cf291f876d45b93 Mon Sep 17 00:00:00 2001
> From: strites <strites at gmail.com>
> Date: Wed, 11 Jun 2008 00:26:04 +0200
> Subject: [PATCH] sws_getContext: COMPILE_ALTIVEC changed to HAVE_ALTIVEC
>
> ---
> swscale.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/swscale.c b/swscale.c
> index 2835812..5afd1c5 100644
> --- a/swscale.c
> +++ b/swscale.c
> @@ -2112,7 +2112,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
> }
> }
>
> -#ifdef COMPILE_ALTIVEC
> +#ifdef HAVE_ALTIVEC
> if ((c->flags & SWS_CPU_CAPS_ALTIVEC) &&
> ((srcFormat == PIX_FMT_YUV420P &&
> (dstFormat == PIX_FMT_YUYV422 || dstFormat == PIX_FMT_UYVY422)))) {
> --
> 1.5.3.7
This is wrong, it only works because the COMPILE_C inclusion of
swscale_template.c comes before the altivec one.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- 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-soc/attachments/20080611/19ef1014/attachment.pgp>
More information about the FFmpeg-soc
mailing list