diff options
author | João Bernardo <jbvsmo@gmail.com> | 2014-01-24 17:28:51 -0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-24 21:14:02 +0100 |
commit | 290326711b1ad24aa83f89a25ae1255077b4ea49 (patch) | |
tree | fce19e51fc6afde6ba03afa3ffc5e71ad32826b1 | |
parent | 934bb11ad79a6937a8fe0c92fc7476f52ea1eaa3 (diff) | |
download | ffmpeg-290326711b1ad24aa83f89a25ae1255077b4ea49.tar.gz |
avutil/opt: Better print representation of number limits
Signed-off-by: João Bernardo Oliveira <jbvsmo@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/opt.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 07864f25c9..6ecc14eb09 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -921,6 +921,8 @@ static void log_value(void *av_log_obj, int level, double d) av_log(av_log_obj, level, "INT_MAX"); } else if (d == INT_MIN) { av_log(av_log_obj, level, "INT_MIN"); + } else if (d == UINT32_MAX) { + av_log(av_log_obj, level, "UINT32_MAX"); } else if (d == (double)INT64_MAX) { av_log(av_log_obj, level, "I64_MAX"); } else if (d == INT64_MIN) { @@ -929,6 +931,18 @@ static void log_value(void *av_log_obj, int level, double d) av_log(av_log_obj, level, "FLT_MAX"); } else if (d == FLT_MIN) { av_log(av_log_obj, level, "FLT_MIN"); + } else if (d == -FLT_MAX) { + av_log(av_log_obj, level, "-FLT_MAX"); + } else if (d == -FLT_MIN) { + av_log(av_log_obj, level, "-FLT_MIN"); + } else if (d == DBL_MAX) { + av_log(av_log_obj, level, "DBL_MAX"); + } else if (d == DBL_MIN) { + av_log(av_log_obj, level, "DBL_MIN"); + } else if (d == -DBL_MAX) { + av_log(av_log_obj, level, "-DBL_MAX"); + } else if (d == -DBL_MIN) { + av_log(av_log_obj, level, "-DBL_MIN"); } else { av_log(av_log_obj, level, "%g", d); } |