Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2010-10-19 00:42:26 +0400
committerMans Rullgard <mans@mansr.com>2011-01-18 23:48:23 +0300
commit324e7ee260b16d33a14c8a1a9909fa54bf1e996b (patch)
treedc05e326f9fb2aca8e4f11ef07e4f0baa003c828 /cmdutils.c
parentf318ee3e37bebb3f498edafdbaf7e164a889a357 (diff)
Use INFINITY and NAN macros instead of 1/0 and 0/0
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 1e7211aa0d..a77e6e67b8 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -198,7 +198,7 @@ unknown_opt:
} else if (po->flags & OPT_INT64) {
*po->u.int64_arg = parse_number_or_die(opt, arg, OPT_INT64, INT64_MIN, INT64_MAX);
} else if (po->flags & OPT_FLOAT) {
- *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -1.0/0.0, 1.0/0.0);
+ *po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -INFINITY, INFINITY);
} else if (po->flags & OPT_FUNC2) {
if (po->u.func2_arg(opt, arg) < 0) {
fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);