mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 22:01:00 +00:00
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
This commit is contained in:
parent
0d315f281c
commit
8845e427a7
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user