Commit 4f2b504e authored by bcoudurier's avatar bcoudurier

correctly handle maximum streams limit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19074 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0d957056
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment