1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

libpostproc: silence valgrind/fate warning about using uninitialized data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2013-03-25 21:48:45 +01:00
parent 67607e20e8
commit a2f7314ba2

View File

@@ -3216,17 +3216,19 @@ static inline void RENAME(duplicate)(uint8_t src[], int stride)
#if TEMPLATE_PP_MMX #if TEMPLATE_PP_MMX
__asm__ volatile( __asm__ volatile(
"movq (%0), %%mm0 \n\t" "movq (%0), %%mm0 \n\t"
"movq %%mm0, (%0, %1, 4) \n\t"
"add %1, %0 \n\t" "add %1, %0 \n\t"
"movq %%mm0, (%0) \n\t" "movq %%mm0, (%0) \n\t"
"movq %%mm0, (%0, %1) \n\t" "movq %%mm0, (%0, %1) \n\t"
"movq %%mm0, (%0, %1, 2) \n\t" "movq %%mm0, (%0, %1, 2) \n\t"
"movq %%mm0, (%0, %1, 4) \n\t"
: "+r" (src) : "+r" (src)
: "r" ((x86_reg)-stride) : "r" ((x86_reg)-stride)
); );
#else #else
int i; int i;
uint8_t *p=src; uint8_t *p=src;
for(i=0; i<3; i++){ for(i=0; i<5; i++){
p-= stride; p-= stride;
memcpy(p, src, 8); memcpy(p, src, 8);
} }