summaryrefslogtreecommitdiff
path: root/libavutil/rational.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-09-30 21:57:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-09-30 21:57:31 +0000
commitb926b6282d3b9fc8115660ae013f74f4f8c06d30 (patch)
treee8fa5303fb381da283980345d95b6f94994f6164 /libavutil/rational.c
parent59b4e5ba49180942be3c8bb26dbf6820e015cb0d (diff)
av_assert() system.
With this the developer can now choose if he wants an assert always enabled or at which compile time assert level. This can thus replace the #define NDEBUG hacks Originally committed as revision 25278 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/rational.c')
-rw-r--r--libavutil/rational.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/rational.c b/libavutil/rational.c
index 3e8b885d49..4e3c50be81 100644
--- a/libavutil/rational.c
+++ b/libavutil/rational.c
@@ -25,7 +25,7 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/
-#include <assert.h>
+#include "assert.h"
//#include <math.h>
#include <limits.h>
@@ -67,7 +67,7 @@ int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
num= den;
den= next_den;
}
- assert(av_gcd(a1.num, a1.den) <= 1U);
+ av_assert2(av_gcd(a1.num, a1.den) <= 1U);
*dst_num = sign ? -a1.num : a1.num;
*dst_den = a1.den;