summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/fft_altivec.c
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2003-01-26 22:29:47 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-26 22:29:47 +0000
commit3b991c54ebf9eb6dc17939576fef9662cae1c16c (patch)
tree472bbe327c6539bccf39d791ab4e9945b94e4b53 /libavcodec/ppc/fft_altivec.c
parenta48835b9fe2d5606a8f0ab56b905047b2a17e42c (diff)
downloadffmpeg-3b991c54ebf9eb6dc17939576fef9662cae1c16c.tar.gz
Altivec on non darwin systems patch by Romain Dolbeau
Originally committed as revision 1509 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/fft_altivec.c')
-rw-r--r--libavcodec/ppc/fft_altivec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ppc/fft_altivec.c b/libavcodec/ppc/fft_altivec.c
index db32acd23a..992be5b8ed 100644
--- a/libavcodec/ppc/fft_altivec.c
+++ b/libavcodec/ppc/fft_altivec.c
@@ -138,7 +138,11 @@ POWERPC_TBL_START_COUNT(altivec_fft_num, s->nbits >= 6);
POWERPC_TBL_STOP_COUNT(altivec_fft_num, s->nbits >= 6);
#else /* ALTIVEC_USE_REFERENCE_C_CODE */
+#ifdef CONFIG_DARWIN
register const vector float vczero = (const vector float)(0.);
+#else
+ register const vector float vczero = (const vector float){0.,0.,0.,0.};
+#endif
int ln = s->nbits;
int j, np, np2;