get rid of MAX_STREAMS limit in mpegts
Originally committed as revision 24753 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
be73ba2fa4
commit
6b2b337657
@ -682,11 +682,15 @@ 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->stream->nb_streams == MAX_STREAMS) ||
|
if ((pes->st && pes->st->discard == AVDISCARD_ALL) ||
|
||||||
(pes->st && pes->st->discard == AVDISCARD_ALL) ||
|
|
||||||
code == 0x1be) /* padding_stream */
|
code == 0x1be) /* padding_stream */
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
|
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
||||||
|
if (!pes->st && pes->stream->nb_streams == MAX_STREAMS)
|
||||||
|
goto skip;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* stream not present in PMT */
|
/* stream not present in PMT */
|
||||||
if (!pes->st) {
|
if (!pes->st) {
|
||||||
pes->st = av_new_stream(ts->stream, pes->pid);
|
pes->st = av_new_stream(ts->stream, pes->pid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user