# HG changeset patch # User michael # Date 1097534829 0 # Node ID fac626a2b73b75445e2d8a15c08fe7b81ee6147b # Parent 15cfba1b97b512cd9f1eaf2e63d56a437c1e5374 missaliged clear_blocks() and h264 not complied but referenced fix patch by (Roine Gustafsson ) and me diff -r 15cfba1b97b5 -r fac626a2b73b ppc/dsputil_ppc.c --- a/ppc/dsputil_ppc.c Mon Oct 11 02:19:29 2004 +0000 +++ b/ppc/dsputil_ppc.c Mon Oct 11 22:47:09 2004 +0000 @@ -141,7 +141,7 @@ ((unsigned long*)blocks)[3] = 0L; i += 16; } - for ( ; i < sizeof(DCTELEM)*6*64 ; i += 32) { + for ( ; i < sizeof(DCTELEM)*6*64-31 ; i += 32) { #ifndef __MWERKS__ asm volatile("dcbz %0,%1" : : "b" (blocks), "r" (i) : "memory"); #else @@ -255,9 +255,9 @@ break; } +#ifdef HAVE_ALTIVEC dsputil_h264_init_ppc(c, avctx); -#ifdef HAVE_ALTIVEC if (has_altivec()) { mm_flags |= MM_ALTIVEC;