avconv: move start_time, recording_time and input_ts_offset to options context

This commit is contained in:
Anton Khirnov 2011-08-28 18:20:17 +02:00
parent 575ec4e17d
commit 6b779cccaa
6 changed files with 35 additions and 46 deletions

View file

@ -254,6 +254,8 @@ unknown_opt:
*(int*)dst = parse_number_or_die(opt, arg, OPT_INT64, INT_MIN, INT_MAX);
} else if (po->flags & OPT_INT64) {
*(int64_t*)dst = parse_number_or_die(opt, arg, OPT_INT64, INT64_MIN, INT64_MAX);
} else if (po->flags & OPT_TIME) {
*(int64_t*)dst = parse_time_or_die(opt, arg, 1);
} else if (po->flags & OPT_FLOAT) {
*(float*)dst = parse_number_or_die(opt, arg, OPT_FLOAT, -INFINITY, INFINITY);
} else if (po->u.func_arg) {