aboutsummaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov2011-08-31 08:51:15 +0200
committerAnton Khirnov2011-09-11 17:29:55 +0200
commit05bffc12c4faff47aabe08bafe44ee3b31ed5b47 (patch)
tree7fd91aab6d69830d8eed95940169782d35f49edf /cmdutils.c
parentf1f15c3c1a813c86e669aeb58a07c10d9cc21893 (diff)
avconv: move audio_sample_fmt to options context.
Also document it and replace undocumented and inconsistent '-sample_fmt list' syntax with -sample_fmts.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 52ec96f951..2aab395a96 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -717,6 +717,15 @@ void show_pix_fmts(void)
}
}
+int show_sample_fmts(const char *opt, const char *arg)
+{
+ int i;
+ char fmt_str[128];
+ for (i = -1; i < AV_SAMPLE_FMT_NB; i++)
+ printf("%s\n", av_get_sample_fmt_string(fmt_str, sizeof(fmt_str), i));
+ return 0;
+}
+
int read_yesno(void)
{
int c = getchar();