From 8845e427a7e048fd5c6109af6b7701009667a73e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 1 Feb 2005 13:03:44 +0000 Subject: 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 --- libavcodec/parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/parser.c') diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 5fb2b06..780b704 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 || -- cgit v1.1