mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02: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;
|
code = pes->header[3] | 0x100;
|
||||||
dprintf(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, code);
|
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 */
|
code == 0x1be) /* padding_stream */
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user