summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-12-12 18:40:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-12-12 18:40:11 +0000
commit55b9e69a31658df3c8e41bdcdbc5a8221a74e733 (patch)
treec6a401564a4593215b58ec20937ffb4b17e9a9b4 /libavcodec/utils.c
parent8540e8c3eca73b18b7b5bc7f0b937007b0f81ddd (diff)
downloadffmpeg-55b9e69a31658df3c8e41bdcdbc5a8221a74e733.tar.gz
av_*_next() API for libavcodec
Originally committed as revision 11204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index be2aa38367..fdfa7bd4e4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -126,6 +126,11 @@ static void do_free(void)
/* encoder management */
AVCodec *first_avcodec = NULL;
+AVCodec *av_codec_next(AVCodec *c){
+ if(c) return c->next;
+ else return first_avcodec;
+}
+
void register_avcodec(AVCodec *format)
{
AVCodec **p;