diff parser.c @ 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 5252700f61df
children e25782262d7d
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 ||