| 2752 | } |
| 2753 | |
| 2754 | static int opt_show_optional_fields(void *optctx, const char *opt, const char *arg) |
| 2755 | { |
| 2756 | if (!av_strcasecmp(arg, "always")) show_optional_fields = SHOW_OPTIONAL_FIELDS_ALWAYS; |
| 2757 | else if (!av_strcasecmp(arg, "never")) show_optional_fields = SHOW_OPTIONAL_FIELDS_NEVER; |
| 2758 | else if (!av_strcasecmp(arg, "auto")) show_optional_fields = SHOW_OPTIONAL_FIELDS_AUTO; |
| 2759 | |
| 2760 | if (show_optional_fields == SHOW_OPTIONAL_FIELDS_AUTO && av_strcasecmp(arg, "auto")) { |
| 2761 | double num; |
| 2762 | int ret = parse_number("show_optional_fields", arg, OPT_TYPE_INT, |
| 2763 | SHOW_OPTIONAL_FIELDS_AUTO, SHOW_OPTIONAL_FIELDS_ALWAYS, &num); |
| 2764 | if (ret < 0) |
| 2765 | return ret; |
| 2766 | show_optional_fields = num; |
| 2767 | } |
| 2768 | return 0; |
| 2769 | } |
| 2770 | |
| 2771 | static int opt_format(void *optctx, const char *opt, const char *arg) |
| 2772 | { |
nothing calls this directly
no test coverage detected