aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/parser.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/parser.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/parser.c')
-rw-r--r--libavcodec/parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 192241987e..b0a6a2a1b0 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -24,6 +24,11 @@
AVCodecParser *av_first_parser = NULL;
+AVCodecParser* av_parser_next(AVCodecParser *p){
+ if(p) return p->next;
+ else return av_first_parser;
+}
+
void av_register_codec_parser(AVCodecParser *parser)
{
parser->next = av_first_parser;