diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-09-11 23:29:24 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-09-11 23:29:24 +0000 |
commit | 0dd5866af767953af61828504c2de662bb6ae49a (patch) | |
tree | cd7013f21a9fb713c0fecce81e83f4dd9ffe44b1 /libavcodec | |
parent | d70e3ff410b0f945a6249658465d807dedfa7857 (diff) | |
download | ffmpeg-0dd5866af767953af61828504c2de662bb6ae49a.tar.gz |
don't use dsp.put_pixels_tab[0][0] with unaligned ptr (fix artifacts on altivec)
Originally committed as revision 6231 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp56.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c index 9acd7e7e2c..c69b1201d1 100644 --- a/libavcodec/vp56.c +++ b/libavcodec/vp56.c @@ -358,11 +358,14 @@ static void vp56_mc(vp56_context_t *s, int b, uint8_t *src, src_block = s->edge_emu_buffer; src_offset = 2 + 2*stride; } else if (deblock_filtering) { - /* only need a 12x12 block, but there is no such dsp function, */ - /* so copy a 16x12 block */ - s->dsp.put_pixels_tab[0][0](s->edge_emu_buffer, - src + s->block_offset[b] + (dy-2)*stride + (dx-2), - stride, 12); + int i; + src_block = s->edge_emu_buffer; + src += s->block_offset[b] + (dy-2)*stride + (dx-2); + for (i=0; i<12; i++) { + memcpy(src_block, src, 12); + src_block += stride; + src += stride; + } src_block = s->edge_emu_buffer; src_offset = 2 + 2*stride; } else { |