Module: libav
Branch: master
Commit: 26e8fa3b508eb047e85f4e923fc8e82a1aa656ba

Author:    Vittorio Giovara <[email protected]>
Committer: Vittorio Giovara <[email protected]>
Date:      Tue Sep 22 13:56:48 2015 +0200

tiny_psnr: Use the correct abs() version

---

 tests/tiny_psnr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index 66eaf82..d06baf6 100644
--- a/tests/tiny_psnr.c
+++ b/tests/tiny_psnr.c
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
                     b = buf[1][j];
                 }
                 sse += (a - b) * (a - b);
-                dist = abs(a - b);
+                dist = llabs(a - b);
                 if (dist > maxdist)
                     maxdist = dist;
                 break;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to