diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-01-26 18:45:11 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-03-26 13:00:09 +0200 |
commit | 80391552c9a308222dd3c75ec4174f962b1bf627 (patch) | |
tree | 8632ab421620c18f1b4adf9d5f06dc443267664a /libavutil/rational.c | |
parent | 193d7eea954950e42e75b397b99be71a09c4a2e0 (diff) | |
download | ffmpeg-80391552c9a308222dd3c75ec4174f962b1bf627.tar.gz |
libavutil: Remove pointless rational test program.
Diffstat (limited to 'libavutil/rational.c')
-rw-r--r-- | libavutil/rational.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/libavutil/rational.c b/libavutil/rational.c index 3e62e1b0fd..4770c54f8b 100644 --- a/libavutil/rational.c +++ b/libavutil/rational.c @@ -144,28 +144,3 @@ int av_find_nearest_q_idx(AVRational q, const AVRational* q_list) return nearest_q_idx; } - -#ifdef TEST -int main(void) -{ - AVRational a,b; - for (a.num = -2; a.num <= 2; a.num++) { - for (a.den = -2; a.den <= 2; a.den++) { - for (b.num = -2; b.num <= 2; b.num++) { - for (b.den = -2; b.den <= 2; b.den++) { - int c = av_cmp_q(a,b); - double d = av_q2d(a) == av_q2d(b) ? - 0 : (av_q2d(a) - av_q2d(b)); - if (d > 0) d = 1; - else if (d < 0) d = -1; - else if (d != d) d = INT_MIN; - if (c != d) - av_log(0, AV_LOG_ERROR, "%d/%d %d/%d, %d %f\n", a.num, - a.den, b.num, b.den, c,d); - } - } - } - } - return 0; -} -#endif |