summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index b87eea363a..d4afc02f6a 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -413,6 +413,16 @@ void show_license(void)
);
}
+void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts)
+{
+ int i;
+ char fmt_str[128];
+ for (i=-1; i < nb_fmts; i++) {
+ get_fmt_string (fmt_str, sizeof(fmt_str), i);
+ fprintf(stdout, "%s\n", fmt_str);
+ }
+}
+
void show_formats(void)
{
AVInputFormat *ifmt=NULL;