summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/vp3dsp_altivec.c
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 /libavcodec/ppc/vp3dsp_altivec.c
parent67e6a9f558fbf7a72137abd0034a3f11249ab8bb (diff)
ppc: cosmetics: Consistently format CPU flag detection invocations
Diffstat (limited to 'libavcodec/ppc/vp3dsp_altivec.c')
-rw-r--r--libavcodec/ppc/vp3dsp_altivec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/ppc/vp3dsp_altivec.c b/libavcodec/ppc/vp3dsp_altivec.c
index 48436f3337..bf50c02822 100644
--- a/libavcodec/ppc/vp3dsp_altivec.c
+++ b/libavcodec/ppc/vp3dsp_altivec.c
@@ -180,9 +180,10 @@ static void vp3_idct_add_altivec(uint8_t *dst, int stride, int16_t block[64])
av_cold void ff_vp3dsp_init_ppc(VP3DSPContext *c, int flags)
{
#if HAVE_ALTIVEC
- if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
- c->idct_put = vp3_idct_put_altivec;
- c->idct_add = vp3_idct_add_altivec;
- }
+ if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ return;
+
+ c->idct_put = vp3_idct_put_altivec;
+ c->idct_add = vp3_idct_add_altivec;
#endif
}