[FFmpeg-cvslog] r11473 - in trunk/libavutil: integer.c mathematics.c
diego
subversion
Tue Jan 8 23:54:49 CET 2008
Author: diego
Date: Tue Jan 8 23:54:49 2008
New Revision: 11473
Log:
Allow compilation of test programs when TEST is defined.
Modified:
trunk/libavutil/integer.c
trunk/libavutil/mathematics.c
Modified: trunk/libavutil/integer.c
==============================================================================
--- trunk/libavutil/integer.c (original)
+++ trunk/libavutil/integer.c Tue Jan 8 23:54:49 2008
@@ -156,7 +156,7 @@ int64_t av_i2int(AVInteger a){
return out;
}
-#if 0
+#ifdef TEST
#undef NDEBUG
#include <assert.h>
Modified: trunk/libavutil/mathematics.c
==============================================================================
--- trunk/libavutil/mathematics.c (original)
+++ trunk/libavutil/mathematics.c Tue Jan 8 23:54:49 2008
@@ -110,7 +110,8 @@ int64_t av_rescale_q(int64_t a, AVRation
int64_t c= cq.num * (int64_t)bq.den;
return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF);
}
-#if 0
+
+#ifdef TEST
#include "integer.h"
#undef printf
main(void){
More information about the ffmpeg-cvslog
mailing list