# HG changeset patch # User reimar # Date 1237565523 0 # Node ID 90e69faca51d6f947a6b1964cfbddfa00a03e0f1 # Parent 9fc0071c1d2092d6bca4fe4e880bf9d69de8c661 Fix swscale compilation with Altivec enabled. diff -r 9fc0071c1d20 -r 90e69faca51d libswscale/swscale_template.c --- a/libswscale/swscale_template.c Fri Mar 20 14:44:26 2009 +0000 +++ b/libswscale/swscale_template.c Fri Mar 20 16:12:03 2009 +0000 @@ -1212,7 +1212,7 @@ #if HAVE_ALTIVEC /* The following list of supported dstFormat values should match what's found in the body of ff_yuv2packedX_altivec() */ - if (!(c->flags & SWS_BITEXACT) && !c->alpPixBuf + if (!(c->flags & SWS_BITEXACT) && !c->alpPixBuf && (c->dstFormat==PIX_FMT_ABGR || c->dstFormat==PIX_FMT_BGRA || c->dstFormat==PIX_FMT_BGR24 || c->dstFormat==PIX_FMT_RGB24 || c->dstFormat==PIX_FMT_RGBA || c->dstFormat==PIX_FMT_ARGB))