aboutsummaryrefslogtreecommitdiffstats
path: root/libpostproc/postprocess_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-25 21:48:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-25 21:48:45 +0100
commita2f7314ba231cde459c4f33f1a7602ae9d9d2d28 (patch)
treee8b0a0edfb9466086801a8b550168fa72d1c15dc /libpostproc/postprocess_template.c
parent67607e20e882eb5639a4e9099caecb52a863ab68 (diff)
downloadffmpeg-a2f7314ba231cde459c4f33f1a7602ae9d9d2d28.tar.gz
libpostproc: silence valgrind/fate warning about using uninitialized data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess_template.c')
-rw-r--r--libpostproc/postprocess_template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index ad0404f76b..3db49b6f3f 100644
--- a/libpostproc/postprocess_template.c
+++ b/libpostproc/postprocess_template.c
@@ -3216,17 +3216,19 @@ static inline void RENAME(duplicate)(uint8_t src[], int stride)
#if TEMPLATE_PP_MMX
__asm__ volatile(
"movq (%0), %%mm0 \n\t"
+ "movq %%mm0, (%0, %1, 4) \n\t"
"add %1, %0 \n\t"
"movq %%mm0, (%0) \n\t"
"movq %%mm0, (%0, %1) \n\t"
"movq %%mm0, (%0, %1, 2) \n\t"
+ "movq %%mm0, (%0, %1, 4) \n\t"
: "+r" (src)
: "r" ((x86_reg)-stride)
);
#else
int i;
uint8_t *p=src;
- for(i=0; i<3; i++){
+ for(i=0; i<5; i++){
p-= stride;
memcpy(p, src, 8);
}