diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-05-10 23:22:17 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-05-31 12:07:11 +0200 |
commit | da60b99a8857d5ca236f32c1799a066e0135a866 (patch) | |
tree | b5af7af3af176f5d481970b9137fc6eefad4a5ab /libavcodec/ppc/me_cmp.c | |
parent | f22ebd2555d15b59e109a5b630dd71374b076d0b (diff) | |
download | ffmpeg-da60b99a8857d5ca236f32c1799a066e0135a866.tar.gz |
ppc: Restrict some Altivec implementations to Big Endian
In Little Endian the vec_ld/vec_st operations work as
expected only for byte-vectors.
Diffstat (limited to 'libavcodec/ppc/me_cmp.c')
-rw-r--r-- | libavcodec/ppc/me_cmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ppc/me_cmp.c b/libavcodec/ppc/me_cmp.c index fd67cf34ee..b074d28b5c 100644 --- a/libavcodec/ppc/me_cmp.c +++ b/libavcodec/ppc/me_cmp.c @@ -34,7 +34,7 @@ #include "libavcodec/mpegvideo.h" #include "libavcodec/me_cmp.h" -#if HAVE_ALTIVEC +#if HAVE_ALTIVEC && HAVE_BIGENDIAN static int sad16_x2_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t stride, int h) { @@ -746,7 +746,7 @@ static int hadamard8_diff16_altivec(MpegEncContext *s, uint8_t *dst, av_cold void ff_me_cmp_init_ppc(MECmpContext *c, AVCodecContext *avctx) { -#if HAVE_ALTIVEC +#if HAVE_ALTIVEC && HAVE_BIGENDIAN if (!PPC_ALTIVEC(av_get_cpu_flags())) return; |