| 1898 | #endif |
| 1899 | |
| 1900 | int show_help(void *optctx, const char *opt, const char *arg) |
| 1901 | { |
| 1902 | char *topic, *par; |
| 1903 | av_log_set_callback(log_callback_help); |
| 1904 | |
| 1905 | topic = av_strdup(arg ? arg : ""); |
| 1906 | if (!topic) |
| 1907 | return AVERROR(ENOMEM); |
| 1908 | par = strchr(topic, '='); |
| 1909 | if (par) |
| 1910 | *par++ = 0; |
| 1911 | |
| 1912 | if (!*topic) { |
| 1913 | show_help_default(topic, par); |
| 1914 | } else if (!strcmp(topic, "decoder")) { |
| 1915 | show_help_codec(par, 0); |
| 1916 | } else if (!strcmp(topic, "encoder")) { |
| 1917 | show_help_codec(par, 1); |
| 1918 | } else if (!strcmp(topic, "demuxer")) { |
| 1919 | show_help_demuxer(par); |
| 1920 | } else if (!strcmp(topic, "muxer")) { |
| 1921 | show_help_muxer(par); |
| 1922 | #if CONFIG_AVFILTER |
| 1923 | } else if (!strcmp(topic, "filter")) { |
| 1924 | show_help_filter(par); |
| 1925 | #endif |
| 1926 | } else { |
| 1927 | show_help_default(topic, par); |
| 1928 | } |
| 1929 | |
| 1930 | av_freep(&topic); |
| 1931 | return 0; |
| 1932 | } |
| 1933 | |
| 1934 | int read_yesno(void) |
| 1935 | { |
nothing calls this directly
no test coverage detected