# HG changeset patch # User michael # Date 1107263024 0 # Node ID f2a9559db6ac77b5b04cdc3225108b3cc36604c3 # Parent 2844b8cf4e11d50e608aeae62fba8619dacb4ce2 10l (array gets padded with 0 which is CODEC_ID_NONE -> parsers claim to support CODEC_ID_NONE) diff -r 2844b8cf4e11 -r f2a9559db6ac parser.c --- 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 ||