av_*_next() API for libavcodec

Originally committed as revision 11204 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-12-12 18:40:11 +00:00
parent 8540e8c3ec
commit 55b9e69a31
5 changed files with 28 additions and 7 deletions

View file

@ -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;