[FFmpeg-cvslog] libpostproc: silence valgrind/fate warning about using uninitialized data

Michael Niedermayer git at videolan.org
Mon Mar 25 21:55:08 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 25 21:48:45 2013 +0100| [a2f7314ba231cde459c4f33f1a7602ae9d9d2d28] | committer: Michael Niedermayer

libpostproc: silence valgrind/fate warning about using uninitialized data

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2f7314ba231cde459c4f33f1a7602ae9d9d2d28
---

 libpostproc/postprocess_template.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index ad0404f..3db49b6 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);
     }



More information about the ffmpeg-cvslog mailing list