Mercurial > libavcodec.hg
comparison parser.c @ 6011:b1fe945d73f9 libavcodec
av_*_next() API for libavcodec
| author | michael |
|---|---|
| date | Wed, 12 Dec 2007 18:40:11 +0000 |
| parents | 25cd2084129a |
| children | 493dc59d469a |
comparison
equal
deleted
inserted
replaced
| 6010:5a8ca3d8ca7d | 6011:b1fe945d73f9 |
|---|---|
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #include "parser.h" | 23 #include "parser.h" |
| 24 | 24 |
| 25 AVCodecParser *av_first_parser = NULL; | 25 AVCodecParser *av_first_parser = NULL; |
| 26 | |
| 27 AVCodecParser* av_parser_next(AVCodecParser *p){ | |
| 28 if(p) return p->next; | |
| 29 else return av_first_parser; | |
| 30 } | |
| 26 | 31 |
| 27 void av_register_codec_parser(AVCodecParser *parser) | 32 void av_register_codec_parser(AVCodecParser *parser) |
| 28 { | 33 { |
| 29 parser->next = av_first_parser; | 34 parser->next = av_first_parser; |
| 30 av_first_parser = parser; | 35 av_first_parser = parser; |
