Mercurial > libavcodec.hg
comparison parser.c @ 2348:d02fb928ca44 libavcodec
pnm parser
author | michael |
---|---|
date | Fri, 12 Nov 2004 22:55:29 +0000 |
parents | 21f450be6cb5 |
children | 8d1983254e28 |
comparison
equal
deleted
inserted
replaced
2347:c6280d48be02 | 2348:d02fb928ca44 |
---|---|
36 int ret; | 36 int ret; |
37 | 37 |
38 for(parser = av_first_parser; parser != NULL; parser = parser->next) { | 38 for(parser = av_first_parser; parser != NULL; parser = parser->next) { |
39 if (parser->codec_ids[0] == codec_id || | 39 if (parser->codec_ids[0] == codec_id || |
40 parser->codec_ids[1] == codec_id || | 40 parser->codec_ids[1] == codec_id || |
41 parser->codec_ids[2] == codec_id) | 41 parser->codec_ids[2] == codec_id || |
42 parser->codec_ids[3] == codec_id || | |
43 parser->codec_ids[4] == codec_id) | |
42 goto found; | 44 goto found; |
43 } | 45 } |
44 return NULL; | 46 return NULL; |
45 found: | 47 found: |
46 s = av_mallocz(sizeof(AVCodecParserContext)); | 48 s = av_mallocz(sizeof(AVCodecParserContext)); |