mirror of
https://github.com/mpv-player/mpv
synced 2025-05-06 18:21:05 +00:00
Fix ppc without altivec compilation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21550 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6bdd546887
commit
d24e49b53d
@ -253,7 +253,7 @@ void mpeg2_idct_init (uint32_t accel)
|
|||||||
mpeg2_idct_mmx_init ();
|
mpeg2_idct_mmx_init ();
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_PPC
|
#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
|
||||||
if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
|
if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
|
||||||
mpeg2_idct_copy = mpeg2_idct_copy_altivec;
|
mpeg2_idct_copy = mpeg2_idct_copy_altivec;
|
||||||
mpeg2_idct_add = mpeg2_idct_add_altivec;
|
mpeg2_idct_add = mpeg2_idct_add_altivec;
|
||||||
|
@ -373,3 +373,14 @@
|
|||||||
decoder->offset += 16; \
|
decoder->offset += 16; \
|
||||||
if (decoder->offset == decoder->width) { \
|
if (decoder->offset == decoder->width) { \
|
||||||
do { /* just so we can use the break statement */ \
|
do { /* just so we can use the break statement */ \
|
||||||
|
--- libmpeg2/idct.c 2006-06-16 20:12:26.000000000 +0200
|
||||||
|
+++ libmpeg2/idct.c 2006-06-16 20:12:50.000000000 +0200
|
||||||
|
@@ -253,7 +253,7 @@
|
||||||
|
mpeg2_idct_mmx_init ();
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
|
-#ifdef ARCH_PPC
|
||||||
|
+#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
|
||||||
|
if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
|
||||||
|
mpeg2_idct_copy = mpeg2_idct_copy_altivec;
|
||||||
|
mpeg2_idct_add = mpeg2_idct_add_altivec;
|
||||||
|
Loading…
Reference in New Issue
Block a user