]> granicus.if.org Git - libx264/commitdiff
ppc: Avoid instantiating unused plane_copy functions
authorAlexandra Hájková <alexandra@khirnov.net>
Wed, 21 Dec 2016 13:13:43 +0000 (13:13 +0000)
committerHenrik Gramner <henrik@gramner.com>
Wed, 18 Jan 2017 15:35:36 +0000 (16:35 +0100)
Those functions are currently only used in 8-bit mode and results in
warnings in other bit depths.

common/ppc/mc.c

index a6e5f706bc3b9a0901a35b1f6d20fddec0093785..65a6ec3f91fc82782412bc8576da69060f743c5a 100644 (file)
@@ -1210,10 +1210,9 @@ static weight_fn_t x264_mc_weight_wtab_altivec[6] =
     mc_weight_w20_altivec,
 };
 
-#endif // !HIGH_BIT_DEPTH
-
 PLANE_COPY_SWAP(16, altivec)
 PLANE_INTERLEAVE(altivec)
+#endif // !HIGH_BIT_DEPTH
 
 void x264_mc_altivec_init( x264_mc_functions_t *pf )
 {