diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-12 17:45:20 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-12-12 17:45:20 +0000 |
commit | c5dc6026008110adee05555fcf2f235850cb506d (patch) | |
tree | ad42fdfc7c1ed6fc57ef03c9c957a2919243dcf2 /cmdutils.c | |
parent | ae5e8caa3db1872dd85d3e985577c004107a5ba1 (diff) | |
download | ffmpeg-c5dc6026008110adee05555fcf2f235850cb506d.tar.gz |
Move list_fmts() from ffmpeg.c to cmdutils.{h,c}, so that it can be
shared by the other ff* tools code.
Originally committed as revision 20812 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 10 |
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; |