[FFmpeg-cvslog] motion-test: fix height parameter

Michael Niedermayer git at videolan.org
Sun Oct 7 23:34:32 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct  7 23:30:52 2012 +0200| [f9b0694cc8ffc6a1e5eb0faa096d255938cb6310] | committer: Michael Niedermayer

motion-test: fix height parameter

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

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

 libavcodec/motion-test.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index 3504ccf..4257706 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -80,8 +80,8 @@ static void test_motion(const char *name,
         for(y=0;y<HEIGHT-17;y++) {
             for(x=0;x<WIDTH-17;x++) {
                 ptr = img2 + y * WIDTH + x;
-                d1 = test_func(NULL, img1, ptr, WIDTH, 1);
-                d2 = ref_func(NULL, img1, ptr, WIDTH, 1);
+                d1 = test_func(NULL, img1, ptr, WIDTH, 8);
+                d2 = ref_func(NULL, img1, ptr, WIDTH, 8);
                 if (d1 != d2) {
                     printf("error: mmx=%d c=%d\n", d1, d2);
                 }
@@ -97,7 +97,7 @@ static void test_motion(const char *name,
         for(y=0;y<HEIGHT-17;y++) {
             for(x=0;x<WIDTH-17;x++) {
                 ptr = img2 + y * WIDTH + x;
-                d1 += test_func(NULL, img1, ptr, WIDTH, 1);
+                d1 += test_func(NULL, img1, ptr, WIDTH, 8);
             }
         }
     }



More information about the ffmpeg-cvslog mailing list