diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-01-18 16:43:04 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2013-01-19 22:04:55 -0800 |
commit | aeaf268e52fc11c1f64914a319e0edddf1346d6a (patch) | |
tree | 4596586d2adfda684defde76992d6fb4426b6089 /libavcodec/ppc | |
parent | 992b03183819553a73b4f870a710ef500b4eb6d0 (diff) | |
download | ffmpeg-aeaf268e52fc11c1f64914a319e0edddf1346d6a.tar.gz |
vp3: integrate clear_blocks with idct of previous block.
This is identical to what e.g. vp8 does, and prevents the function call
overhead (plus dependency on dsputil for this particular function).
Arm asm updated by Janne Grunau <janne-libav@jannau.net>.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/vp3dsp_altivec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ppc/vp3dsp_altivec.c b/libavcodec/ppc/vp3dsp_altivec.c index 75a36779ce..6adf9aefac 100644 --- a/libavcodec/ppc/vp3dsp_altivec.c +++ b/libavcodec/ppc/vp3dsp_altivec.c @@ -140,6 +140,7 @@ static void vp3_idct_put_altivec(uint8_t *dst, int stride, DCTELEM block[64]) PUT(b5) dst += stride; PUT(b6) dst += stride; PUT(b7) + memset(block, 0, sizeof(*block) * 64); } static void vp3_idct_add_altivec(uint8_t *dst, int stride, DCTELEM block[64]) @@ -171,6 +172,7 @@ static void vp3_idct_add_altivec(uint8_t *dst, int stride, DCTELEM block[64]) ADD(b5) dst += stride; ADD(b6) dst += stride; ADD(b7) + memset(block, 0, sizeof(*block) * 64); } #endif /* HAVE_ALTIVEC */ |