Revision 0c55c6d3 cmdutils.c

View differences:

cmdutils.c
508 508
    );
509 509
}
510 510

  
511
void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts)
512
{
513
    int i;
514
    char fmt_str[128];
515
    for (i=-1; i < nb_fmts; i++) {
516
        get_fmt_string (fmt_str, sizeof(fmt_str), i);
517
        fprintf(stdout, "%s\n", fmt_str);
518
    }
519
}
520

  
521 511
void show_formats(void)
522 512
{
523 513
    AVInputFormat *ifmt=NULL;

Also available in: Unified diff