mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 21:30:55 +00:00
correctly handle maximum streams limit
Originally committed as revision 19074 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1c4df2ab24
commit
617c461625
@ -925,7 +925,8 @@ static int mpegts_push_data(MpegTSFilter *filter,
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user