diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-27 12:59:35 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-27 12:59:35 +0000 |
commit | 85623cf7b6df2eb5bf9d7a4c5ce7db309c116e18 (patch) | |
tree | 4f845e325d5d535cedfb6164dbbd645acdf52168 /codec-cfg.c | |
parent | 70af2210743964ff60266fbf94f0cbef92bc2eec (diff) | |
download | mpv-85623cf7b6df2eb5bf9d7a4c5ce7db309c116e18.tar.bz2 mpv-85623cf7b6df2eb5bf9d7a4c5ce7db309c116e18.tar.xz |
-ac help / -vc help
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1984 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 05320e02bc..65c9147fe1 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -644,6 +644,30 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap, return NULL; } +void list_codecs(int audioflag){ + int i, j; + codecs_t *c; + + if (audioflag) { + i = nr_acodecs; + c = audio_codecs; + } else { + i = nr_vcodecs; + c = video_codecs; + } + if(!i) return NULL; + for (/* NOTHING */; i--; c++) { + if(c->dll) + printf("%-10s %2d %s [%s]\n",c->name,c->driver,c->info,c->dll); + else + printf("%-10s %2d %s\n",c->name,c->driver,c->info); + + } + +} + + + #ifdef CODECS2HTML void wrapline(FILE *f2,char *s){ |