summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/h264qpel.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/h264qpel.c
parent67e6a9f558fbf7a72137abd0034a3f11249ab8bb (diff)
ppc: cosmetics: Consistently format CPU flag detection invocations
Diffstat (limited to 'libavcodec/ppc/h264qpel.c')
-rw-r--r--libavcodec/ppc/h264qpel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264qpel.c b/libavcodec/ppc/h264qpel.c
index 113617c98f..f99c8f8126 100644
--- a/libavcodec/ppc/h264qpel.c
+++ b/libavcodec/ppc/h264qpel.c
@@ -288,7 +288,9 @@ av_cold void ff_h264qpel_init_ppc(H264QpelContext *c, int bit_depth)
#if HAVE_ALTIVEC
const int high_bit_depth = bit_depth > 8;
- if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
+ if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ return;
+
if (!high_bit_depth) {
#define dspfunc(PFX, IDX, NUM) \
c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_altivec; \
@@ -312,6 +314,5 @@ av_cold void ff_h264qpel_init_ppc(H264QpelContext *c, int bit_depth)
dspfunc(avg_h264_qpel, 0, 16);
#undef dspfunc
}
- }
#endif /* HAVE_ALTIVEC */
}