aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/ppc
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-08-23 18:50:53 +0200
committerDiego Biurrun <diego@biurrun.de>2013-08-29 11:31:32 +0200
commita6b650118543e1580e872896d8976042b7c32d01 (patch)
tree0b788c4e45c5013338a39c93f27123adb44663cf /libswscale/ppc
parent67e6a9f558fbf7a72137abd0034a3f11249ab8bb (diff)
downloadffmpeg-a6b650118543e1580e872896d8976042b7c32d01.tar.gz
ppc: cosmetics: Consistently format CPU flag detection invocations
Diffstat (limited to 'libswscale/ppc')
-rw-r--r--libswscale/ppc/yuv2yuv_altivec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libswscale/ppc/yuv2yuv_altivec.c b/libswscale/ppc/yuv2yuv_altivec.c
index 3d483914c6..a8fa9c65f0 100644
--- a/libswscale/ppc/yuv2yuv_altivec.c
+++ b/libswscale/ppc/yuv2yuv_altivec.c
@@ -187,8 +187,11 @@ static int yv12touyvy_unscaled_altivec(SwsContext *c, const uint8_t *src[],
av_cold void ff_get_unscaled_swscale_ppc(SwsContext *c)
{
#if HAVE_ALTIVEC
- if ((av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) && !(c->srcW & 15) &&
- !(c->flags & SWS_BITEXACT) && c->srcFormat == AV_PIX_FMT_YUV420P) {
+ if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ return NULL;
+
+ if (!(c->srcW & 15) && !(c->flags & SWS_BITEXACT) &&
+ c->srcFormat == AV_PIX_FMT_YUV420P) {
enum AVPixelFormat dstFormat = c->dstFormat;
// unscaled YV12 -> packed YUV, we want speed