summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/h264chroma_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ppc/h264chroma_init.c')
-rw-r--r--libavcodec/ppc/h264chroma_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ppc/h264chroma_init.c b/libavcodec/ppc/h264chroma_init.c
index f36d8e94bd..415a8df1ee 100644
--- a/libavcodec/ppc/h264chroma_init.c
+++ b/libavcodec/ppc/h264chroma_init.c
@@ -53,11 +53,12 @@ av_cold void ff_h264chroma_init_ppc(H264ChromaContext *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) {
c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec;
c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec;
}
- }
#endif /* HAVE_ALTIVEC */
}