diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-04-14 14:47:30 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-04-30 12:19:45 +0200 |
commit | 38282149b6ce8f4b8361e3b84542ba9aa8a1f32f (patch) | |
tree | 028b5282288a6849233274851112fff4e2d0d25b /libavcodec/ppc/mpegaudiodsp_altivec.c | |
parent | 42b9150b0d4f0a130c1d93dc991fd5412743a8cf (diff) | |
download | ffmpeg-38282149b6ce8f4b8361e3b84542ba9aa8a1f32f.tar.gz |
ppc: More consistent arch initialization
Diffstat (limited to 'libavcodec/ppc/mpegaudiodsp_altivec.c')
-rw-r--r-- | libavcodec/ppc/mpegaudiodsp_altivec.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libavcodec/ppc/mpegaudiodsp_altivec.c b/libavcodec/ppc/mpegaudiodsp_altivec.c index 7965183999..64a6d03d6d 100644 --- a/libavcodec/ppc/mpegaudiodsp_altivec.c +++ b/libavcodec/ppc/mpegaudiodsp_altivec.c @@ -19,11 +19,14 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "dsputil_altivec.h" +#include "config.h" #include "libavutil/attributes.h" #include "libavutil/internal.h" #include "libavutil/ppc/util_altivec.h" #include "libavcodec/mpegaudiodsp.h" +#include "dsputil_altivec.h" + +#if HAVE_ALTIVEC #define MACS(rt, ra, rb) rt+=(ra)*(rb) #define MLSS(rt, ra, rb) rt-=(ra)*(rb) @@ -124,7 +127,11 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out, *out = sum; } -av_cold void ff_mpadsp_init_altivec(MPADSPContext *s) +#endif /* HAVE_ALTIVEC */ + +av_cold void ff_mpadsp_init_ppc(MPADSPContext *s) { +#if HAVE_ALTIVEC s->apply_window_float = apply_window_mp3; +#endif /* HAVE_ALTIVEC */ } |