Commit b1d041c1 authored by Roine Gustafsson's avatar Roine Gustafsson Committed by Michael Niedermayer

missaliged clear_blocks() and h264 not complied but referenced fix patch by...

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
parent c42fa80c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment