Revision cdc6a87f cmdutils.c

View differences:

cmdutils.c
653 653

  
654 654
void show_protocols(void)
655 655
{
656
    URLProtocol *up=NULL;
656
    void *opaque = NULL;
657
    const char *name;
657 658

  
658 659
    printf("Supported file protocols:\n"
659
           "I.. = Input  supported\n"
660
           ".O. = Output supported\n"
661
           "..S = Seek   supported\n"
662
           "FLAGS NAME\n"
663
           "----- \n");
664
    while((up = av_protocol_next(up)))
665
        printf("%c%c%c   %s\n",
666
               up->url_read  ? 'I' : '.',
667
               up->url_write ? 'O' : '.',
668
               up->url_seek  ? 'S' : '.',
669
               up->name);
660
           "Input:\n");
661
    while ((name = avio_enum_protocols(&opaque, 0)))
662
        printf("%s\n", name);
663
    printf("Output:\n");
664
    while ((name = avio_enum_protocols(&opaque, 1)))
665
        printf("%s\n", name);
670 666
}
671 667

  
672 668
void show_filters(void)

Also available in: Unified diff