Mercurial > libavformat.hg
diff utils.c @ 2812:173b5cb7efde libavformat
av_*_next() API for libavformat
author | michael |
---|---|
date | Wed, 12 Dec 2007 19:01:58 +0000 |
parents | d3b3cfb538d8 |
children | f717dd23fc23 |
line wrap: on
line diff
--- a/utils.c Sun Dec 09 14:39:01 2007 +0000 +++ b/utils.c Wed Dec 12 19:01:58 2007 +0000 @@ -41,6 +41,18 @@ /** head of registered output format linked list. */ AVOutputFormat *first_oformat = NULL; +AVInputFormat *av_iformat_next(AVInputFormat *f) +{ + if(f) return f->next; + else return first_iformat; +} + +AVOutputFormat *av_oformat_next(AVOutputFormat *f) +{ + if(f) return f->next; + else return first_oformat; +} + void av_register_input_format(AVInputFormat *format) { AVInputFormat **p;