diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-02-01 13:03:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-02-01 13:03:44 +0000 |
commit | 8845e427a7e048fd5c6109af6b7701009667a73e (patch) | |
tree | 6c15b15f88bdb3d3024db5aa00b8f07dae8bfe47 | |
parent | 0d315f281c4bbdb59a7395985d9d89a9395928c0 (diff) | |
download | ffmpeg-8845e427a7e048fd5c6109af6b7701009667a73e.tar.gz |
10l (array gets padded with 0 which is CODEC_ID_NONE -> parsers claim to support CODEC_ID_NONE)
Originally committed as revision 3918 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 5fb2b06940..780b7043ab 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -34,6 +34,9 @@ AVCodecParserContext *av_parser_init(int codec_id) 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 || |