diff mathops.h @ 10951:38b3b209b4bc libavcodec

Move COPY3_IF_LT to lavc/mathops.h This obscure macro is only used in motion_est.c so having it in lavc makes more sense. See discussion here: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html
author mru
date Wed, 20 Jan 2010 06:01:54 +0000
parents 42a126c78744
children 5f2c4bcf6e6e
line wrap: on
line diff
--- a/mathops.h	Wed Jan 20 03:28:57 2010 +0000
+++ b/mathops.h	Wed Jan 20 06:01:54 2010 +0000
@@ -116,5 +116,14 @@
 }
 #endif
 
+#ifndef COPY3_IF_LT
+#define COPY3_IF_LT(x, y, a, b, c, d)\
+if ((y) < (x)) {\
+    (x) = (y);\
+    (a) = (b);\
+    (c) = (d);\
+}
+#endif
+
 #endif /* AVCODEC_MATHOPS_H */