From: Aurelien Jacobs Date: Mon, 9 Aug 2010 23:21:08 +0000 (+0000) Subject: get rid of MAX_STREAMS limit in mpegts X-Git-Tag: v0.7b1~2624 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b2b337657f23a967bcdc35e1835ea3af21237ad;p=platform%2Fupstream%2Flibav.git get rid of MAX_STREAMS limit in mpegts Originally committed as revision 24753 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 27d13bc..997b768 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -682,11 +682,15 @@ 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->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);