MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / show_help

Function show_help

ffmpeg-single-cmd/src/main/cpp/cmdutils.c:1900–1932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1898#endif
1899
1900int 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
1934int read_yesno(void)
1935{

Callers

nothing calls this directly

Calls 5

show_help_defaultFunction · 0.85
show_help_codecFunction · 0.85
show_help_demuxerFunction · 0.85
show_help_muxerFunction · 0.85
show_help_filterFunction · 0.85

Tested by

no test coverage detected