diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-30 11:48:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-30 11:48:54 +0200 |
commit | 09c94b57ca2c567ed6520c28f20a6a25c2950cb4 (patch) | |
tree | 4e13f50392fffbfcd6be8d41e3e1c503db5d2cdb /libavcodec/ppc/h264qpel.c | |
parent | e45e72f5f89ef5a5791562cfcb935028b46ecd0a (diff) | |
parent | a6b650118543e1580e872896d8976042b7c32d01 (diff) | |
download | ffmpeg-09c94b57ca2c567ed6520c28f20a6a25c2950cb4.tar.gz |
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/h264qpel.c')
-rw-r--r-- | libavcodec/ppc/h264qpel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264qpel.c b/libavcodec/ppc/h264qpel.c index bda7b18b30..1f50ec9929 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 */ } |