Commit 222f8cdd authored by aurel's avatar aurel

don't use dsp.put_pixels_tab[0][0] with unaligned ptr (fix artifacts on altivec)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6231 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6e8c9f88
...@@ -358,11 +358,14 @@ static void vp56_mc(vp56_context_t *s, int b, uint8_t *src, ...@@ -358,11 +358,14 @@ static void vp56_mc(vp56_context_t *s, int b, uint8_t *src,
src_block = s->edge_emu_buffer; src_block = s->edge_emu_buffer;
src_offset = 2 + 2*stride; src_offset = 2 + 2*stride;
} else if (deblock_filtering) { } else if (deblock_filtering) {
/* only need a 12x12 block, but there is no such dsp function, */ int i;
/* so copy a 16x12 block */ src_block = s->edge_emu_buffer;
s->dsp.put_pixels_tab[0][0](s->edge_emu_buffer, src += s->block_offset[b] + (dy-2)*stride + (dx-2);
src + s->block_offset[b] + (dy-2)*stride + (dx-2), for (i=0; i<12; i++) {
stride, 12); memcpy(src_block, src, 12);
src_block += stride;
src += stride;
}
src_block = s->edge_emu_buffer; src_block = s->edge_emu_buffer;
src_offset = 2 + 2*stride; src_offset = 2 + 2*stride;
} else { } else {
......
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