aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/dct-test.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-05-10 23:22:17 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-05-31 12:07:11 +0200
commitda60b99a8857d5ca236f32c1799a066e0135a866 (patch)
treeb5af7af3af176f5d481970b9137fc6eefad4a5ab /libavcodec/ppc/dct-test.c
parentf22ebd2555d15b59e109a5b630dd71374b076d0b (diff)
downloadffmpeg-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/dct-test.c')
-rw-r--r--libavcodec/ppc/dct-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ppc/dct-test.c b/libavcodec/ppc/dct-test.c
index 37fd8bbd23..2acbe2aeb0 100644
--- a/libavcodec/ppc/dct-test.c
+++ b/libavcodec/ppc/dct-test.c
@@ -21,7 +21,7 @@
#include "fdct.h"
static const struct algo fdct_tab_arch[] = {
-#if HAVE_ALTIVEC
+#if HAVE_ALTIVEC && HAVE_BIGENDIAN
{ "altivecfdct", ff_fdct_altivec, FF_IDCT_PERM_NONE, AV_CPU_FLAG_ALTIVEC },
#endif
{ 0 }