[x264-devel] commit: fix "incompatible types in initialization" compilation issues with GCC 4.3 ( which is stricter than previous compiler version) (Guillaume Poirier )

git version control git at videolan.org
Tue Apr 21 23:20:25 CEST 2009


x264 | branch: master | Guillaume Poirier <gpoirier at mplayerhq.hu> | Tue Apr 21 21:18:44 2009 +0000| [d2e1e1c35c43ea9c90c9211be6202143b69b35b9] | committer: Guillaume Poirier 

fix "incompatible types in initialization" compilation issues with GCC 4.3 (which is stricter than previous compiler version)

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=d2e1e1c35c43ea9c90c9211be6202143b69b35b9
---

 common/ppc/pixel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
index 2f7082a..360e71d 100644
--- a/common/ppc/pixel.c
+++ b/common/ppc/pixel.c
@@ -1865,7 +1865,7 @@ static int pixel_sa8d_16x16_altivec( uint8_t *pix1, int i_pix1,
 
 #define VEC_LOAD_HIGH( p, num )                                    \
     vec_u8_t pix8_##num = vec_ld( stride*num, p );                 \
-    vec_s16_t pix16_s##num = vec_perm(pix8_##num, zero_u8v, perm); \
+    vec_s16_t pix16_s##num = (vec_s16_t)vec_perm(pix8_##num, zero_u8v, perm); \
     vec_s16_t pix16_d##num;
 
 static uint64_t pixel_hadamard_ac_altivec( uint8_t *pix, int stride, const vec_u8_t perm )



More information about the x264-devel mailing list