summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-02-01 13:03:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-02-01 13:03:44 +0000
commit8845e427a7e048fd5c6109af6b7701009667a73e (patch)
tree6c15b15f88bdb3d3024db5aa00b8f07dae8bfe47
parent0d315f281c4bbdb59a7395985d9d89a9395928c0 (diff)
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.c3
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 ||