| Index: source/patched-ffmpeg-mt/libavcodec/ppc/vp8dsp_altivec.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavcodec/ppc/vp8dsp_altivec.c (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavcodec/ppc/vp8dsp_altivec.c (working copy)
|
| @@ -20,6 +20,7 @@
|
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
| */
|
|
|
| +#include "libavutil/cpu.h"
|
| #include "libavcodec/vp8dsp.h"
|
| #include "dsputil_altivec.h"
|
| #include "types_altivec.h"
|
| @@ -265,7 +266,7 @@
|
|
|
| av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c)
|
| {
|
| - if (!has_altivec())
|
| + if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
|
| return;
|
|
|
| c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec;
|
|
|