Mercurial > libavcodec.hg
comparison parser.c @ 2486:f2a9559db6ac libavcodec
10l (array gets padded with 0 which is CODEC_ID_NONE -> parsers claim to support CODEC_ID_NONE)
author | michael |
---|---|
date | Tue, 01 Feb 2005 13:03:44 +0000 |
parents | 5252700f61df |
children | e25782262d7d |
comparison
equal
deleted
inserted
replaced
2485:2844b8cf4e11 | 2486:f2a9559db6ac |
---|---|
32 AVCodecParserContext *av_parser_init(int codec_id) | 32 AVCodecParserContext *av_parser_init(int codec_id) |
33 { | 33 { |
34 AVCodecParserContext *s; | 34 AVCodecParserContext *s; |
35 AVCodecParser *parser; | 35 AVCodecParser *parser; |
36 int ret; | 36 int ret; |
37 | |
38 if(codec_id == CODEC_ID_NONE) | |
39 return NULL; | |
37 | 40 |
38 for(parser = av_first_parser; parser != NULL; parser = parser->next) { | 41 for(parser = av_first_parser; parser != NULL; parser = parser->next) { |
39 if (parser->codec_ids[0] == codec_id || | 42 if (parser->codec_ids[0] == codec_id || |
40 parser->codec_ids[1] == codec_id || | 43 parser->codec_ids[1] == codec_id || |
41 parser->codec_ids[2] == codec_id || | 44 parser->codec_ids[2] == codec_id || |