diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-29 22:38:28 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-29 22:38:28 +0000 |
commit | 2ee5c78967730f2cffcd873fd793266dd8cecf58 (patch) | |
tree | 824ced4f3ddbaa4c28ec2682c1d0df10d24d412e /cmdutils.c | |
parent | 2c3dda6838f7cdd13e3c9b96ff452328a5e9ab01 (diff) | |
download | ffmpeg-2ee5c78967730f2cffcd873fd793266dd8cecf58.tar.gz |
Extend show_protocols() to make it print information about input,
output, seek support.
Originally committed as revision 24581 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 978b73c2dc..a79c38ea3e 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -580,9 +580,18 @@ void show_protocols(void) { URLProtocol *up=NULL; - printf("Supported file protocols:\n"); + printf("Supported file protocols:\n" + "I.. = Input supported\n" + ".O. = Output supported\n" + "..S = Seek supported\n" + "FLAGS NAME\n" + "----- \n"); while((up = av_protocol_next(up))) - printf("%s\n", up->name); + printf("%c%c%c %s\n", + up->url_read ? 'I' : '.', + up->url_write ? 'O' : '.', + up->url_seek ? 'S' : '.', + up->name); } void show_filters(void) |