aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/dsputil_ppc.c
diff options
context:
space:
mode:
authorRoine Gustafsson <roine@users.sourceforge.net>2004-10-11 22:47:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-11 22:47:09 +0000
commitb1d041c15c6b45cde682f4dfd12d15a0709da399 (patch)
treeac7ba52563d8fad7e19ad413ef9cb32d1fbf221b /libavcodec/ppc/dsputil_ppc.c
parentc42fa80c1c4daa94479a4c91d0396a52940680ad (diff)
downloadffmpeg-b1d041c15c6b45cde682f4dfd12d15a0709da399.tar.gz
missaliged clear_blocks() and h264 not complied but referenced fix patch by (Roine Gustafsson <roine at users dot sourceforge dot net>) and me
Originally committed as revision 3584 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r--libavcodec/ppc/dsputil_ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c
index 546fa0bd49..80dea036d6 100644
--- a/libavcodec/ppc/dsputil_ppc.c
+++ b/libavcodec/ppc/dsputil_ppc.c
@@ -141,7 +141,7 @@ POWERPC_PERF_START_COUNT(powerpc_clear_blocks_dcbz32, 1);
((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 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
break;
}
+#ifdef HAVE_ALTIVEC
dsputil_h264_init_ppc(c, avctx);
-#ifdef HAVE_ALTIVEC
if (has_altivec()) {
mm_flags |= MM_ALTIVEC;