| Index: source/patched-ffmpeg-mt/libavformat/mpegts.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavformat/mpegts.c (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavformat/mpegts.c (working copy)
|
| @@ -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 FF_API_MAX_STREAMS
|
| + 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);
|
|
|