[FFmpeg-cvslog] r24753 - trunk/libavformat/mpegts.c
aurel
subversion
Tue Aug 10 01:21:08 CEST 2010
Author: aurel
Date: Tue Aug 10 01:21:08 2010
New Revision: 24753
Log:
get ride of MAX_STREAMS limit in mpegts
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c Tue Aug 10 01:00:13 2010 (r24752)
+++ trunk/libavformat/mpegts.c Tue Aug 10 01:21:08 2010 (r24753)
@@ -682,11 +682,15 @@ static int mpegts_push_data(MpegTSFilter
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);
More information about the ffmpeg-cvslog
mailing list