# HG changeset patch # User bcoudurier # Date 1243927819 0 # Node ID 476d3417effaa7d25e71e2683e17c83ce29dec8d # Parent 5540ea103272ede49d5690afe59764fa0bd1c600 correctly handle maximum streams limit diff -r 5540ea103272 -r 476d3417effa mpegts.c --- a/mpegts.c Tue Jun 02 07:26:58 2009 +0000 +++ b/mpegts.c Tue Jun 02 07:30:19 2009 +0000 @@ -925,7 +925,8 @@ code = pes->header[3] | 0x100; dprintf(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, code); - if ((pes->st && pes->st->discard == AVDISCARD_ALL) || + if ((!pes->st && pes->stream->nb_streams == MAX_STREAMS) || + (pes->st && pes->st->discard == AVDISCARD_ALL) || code == 0x1be) /* padding_stream */ goto skip;