mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-31 08:57:49 +00:00
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
This commit is contained in:
parent
ae5e8caa3d
commit
c5dc602600
3 changed files with 12 additions and 10 deletions
10
cmdutils.c
10
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue