summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/h264dsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-30 11:48:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-30 11:48:54 +0200
commit09c94b57ca2c567ed6520c28f20a6a25c2950cb4 (patch)
tree4e13f50392fffbfcd6be8d41e3e1c503db5d2cdb /libavcodec/ppc/h264dsp.c
parente45e72f5f89ef5a5791562cfcb935028b46ecd0a (diff)
parenta6b650118543e1580e872896d8976042b7c32d01 (diff)
Merge commit 'a6b650118543e1580e872896d8976042b7c32d01'
* commit 'a6b650118543e1580e872896d8976042b7c32d01': ppc: cosmetics: Consistently format CPU flag detection invocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ppc/h264dsp.c')
-rw-r--r--libavcodec/ppc/h264dsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264dsp.c b/libavcodec/ppc/h264dsp.c
index 1670ecedb8..9e749b5bc6 100644
--- a/libavcodec/ppc/h264dsp.c
+++ b/libavcodec/ppc/h264dsp.c
@@ -745,7 +745,9 @@ av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth,
const int chroma_format_idc)
{
#if HAVE_ALTIVEC
- if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
+ if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ return;
+
if (bit_depth == 8) {
c->h264_idct_add = h264_idct_add_altivec;
if (chroma_format_idc == 1)
@@ -764,6 +766,5 @@ av_cold void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth,
c->biweight_h264_pixels_tab[0] = biweight_h264_pixels16_altivec;
c->biweight_h264_pixels_tab[1] = biweight_h264_pixels8_altivec;
}
- }
#endif /* HAVE_ALTIVEC */
}