summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-03-31 09:59:53 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-03-31 09:59:53 +0000
commit46641a135c44296873b671034f5b4c290de37159 (patch)
treeb88debc1684ecca4ef94b85d1c616ebd739cf74c /libavcodec
parentf880199375ee661c22128febd531a7faa122ff0f (diff)
Proper typecast for vector bool
Originally committed as revision 5250 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ppc/dsputil_snow_altivec.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/ppc/dsputil_snow_altivec.c b/libavcodec/ppc/dsputil_snow_altivec.c
index e5aba7b8fa..02ef678d36 100644
--- a/libavcodec/ppc/dsputil_snow_altivec.c
+++ b/libavcodec/ppc/dsputil_snow_altivec.c
@@ -556,12 +556,14 @@ static void inner_add_yblock_bw_8_obmc_16_altivec(uint8_t *obmc,
vec_splat_u32(7))),
vec_splat_u32(8));
- mask = vec_sl((vector signed int) vec_cmpeq(v[x],v[x]),
+ mask = (vector bool int)
+ vec_sl((vector signed int) vec_cmpeq(v[x],v[x]),
vec_splat_u32(8));
- mask = vec_and(v[x],vec_nor(mask,mask));
+ mask = (vector bool int)
+ vec_and(v[x],vec_nor(mask,mask));
- mask = (vector signed int) vec_cmpeq((vector signed int)mask,
- (vector signed int)vec_splat_u32(0));
+ mask = (vector bool int)
+ vec_cmpeq((vector signed int)mask, vec_splat_s32(0));
vs = vec_sra(v[x],vec_splat_u32(8));
vs = vec_sra(v[x],vec_splat_u32(8));