Mercurial > libavformat.hg
changeset 6358:61e469c032b7 libavformat
get ride of MAX_STREAMS limit in mpegts
author | aurel |
---|---|
date | Mon, 09 Aug 2010 23:21:08 +0000 |
parents | b7ee8424b7e6 |
children | f8fe5baa8b47 |
files | mpegts.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Mon Aug 09 23:00:13 2010 +0000 +++ b/mpegts.c Mon Aug 09 23:21:08 2010 +0000 @@ -682,11 +682,15 @@ code = pes->header[3] | 0x100; dprintf(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, code); - if ((!pes->st && pes->stream->nb_streams == MAX_STREAMS) || - (pes->st && pes->st->discard == AVDISCARD_ALL) || + if ((pes->st && pes->st->discard == AVDISCARD_ALL) || code == 0x1be) /* padding_stream */ goto skip; +#if LIBAVFORMAT_VERSION_MAJOR < 53 + if (!pes->st && pes->stream->nb_streams == MAX_STREAMS) + goto skip; +#endif + /* stream not present in PMT */ if (!pes->st) { pes->st = av_new_stream(ts->stream, pes->pid);