mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02: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