Mercurial > libavcodec.hg
changeset 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 | 2844b8cf4e11 |
children | b09bc77eb2fb |
files | parser.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/parser.c Tue Feb 01 11:26:11 2005 +0000 +++ b/parser.c Tue Feb 01 13:03:44 2005 +0000 @@ -34,6 +34,9 @@ AVCodecParserContext *s; AVCodecParser *parser; int ret; + + if(codec_id == CODEC_ID_NONE) + return NULL; for(parser = av_first_parser; parser != NULL; parser = parser->next) { if (parser->codec_ids[0] == codec_id ||