Commit 0e5b0861 authored by benoit's avatar benoit

change atoll call to equivalent strtoll to fix compilation on Mac OS X 10.2
patch by Patrice Bensoussan \ patrice dot bensoussan chez free dot fr
Original thread:
date: 04/05/2007 07:56 PM
subject: [Ffmpeg-devel] [PATCH] Fix broken compilation on Mac OS X 10.2 due to OPT_INT64 support



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8724 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d28e4ab
...@@ -99,7 +99,7 @@ unknown_opt: ...@@ -99,7 +99,7 @@ unknown_opt:
} else if (po->flags & OPT_INT) { } else if (po->flags & OPT_INT) {
*po->u.int_arg = atoi(arg); *po->u.int_arg = atoi(arg);
} else if (po->flags & OPT_INT64) { } else if (po->flags & OPT_INT64) {
*po->u.int64_arg = atoll(arg); *po->u.int64_arg = strtoll(arg, (char **)NULL, 10);
} else if (po->flags & OPT_FLOAT) { } else if (po->flags & OPT_FLOAT) {
*po->u.float_arg = atof(arg); *po->u.float_arg = atof(arg);
} else if (po->flags & OPT_FUNC2) { } else if (po->flags & OPT_FUNC2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment