avconv: move audio_sample_fmt to options context.

Also document it and replace undocumented and inconsistent
'-sample_fmt list' syntax with -sample_fmts.
This commit is contained in:
Anton Khirnov
2011-08-31 08:51:15 +02:00
parent f1f15c3c1a
commit 05bffc12c4
6 changed files with 34 additions and 24 deletions

View File

@ -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();