diff options
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 9 |
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(); |