av_*_next() API for libavcodec
Originally committed as revision 11204 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8540e8c3ec
commit
55b9e69a31
5 changed files with 28 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue