| 538 | } |
| 539 | |
| 540 | static void check_options(const OptionDef *po) |
| 541 | { |
| 542 | while (po->name) { |
| 543 | if (po->flags & OPT_PERFILE) |
| 544 | av_assert0(po->flags & (OPT_INPUT | OPT_OUTPUT | OPT_DECODER)); |
| 545 | |
| 546 | if (po->type == OPT_TYPE_FUNC) |
| 547 | av_assert0(!(po->flags & (OPT_FLAG_OFFSET | OPT_FLAG_SPEC))); |
| 548 | |
| 549 | // OPT_FUNC_ARG can only be ser for OPT_TYPE_FUNC |
| 550 | av_assert0((po->type == OPT_TYPE_FUNC) || !(po->flags & OPT_FUNC_ARG)); |
| 551 | |
| 552 | po++; |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | void parse_loglevel(int argc, char **argv, const OptionDef *options) |
| 557 | { |