diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 19:01:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 19:01:58 +0000 |
commit | 84be6e723930e540ee105949af1a7a498164560c (patch) | |
tree | d92e440279d6a8b407ba691705fb97f717a15ae9 /libavformat/utils.c | |
parent | 562b216307ab1e7a62fe85ef9dcf3c485bc647f7 (diff) | |
download | ffmpeg-84be6e723930e540ee105949af1a7a498164560c.tar.gz |
av_*_next() API for libavformat
Originally committed as revision 11206 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index ae1659f4c8..3cd07552c5 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -41,6 +41,18 @@ AVInputFormat *first_iformat = NULL; /** 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; |