[FFmpeg-cvslog] r18137 - trunk/libavformat/mpegts.c
bcoudurier
subversion
Sun Mar 22 03:04:28 CET 2009
Author: bcoudurier
Date: Sun Mar 22 03:04:28 2009
New Revision: 18137
Log:
avoid creating a new stream not referenced in pmt since it cannot be associated to a program, fix issue 835
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c Sun Mar 22 02:32:27 2009 (r18136)
+++ trunk/libavformat/mpegts.c Sun Mar 22 03:04:28 2009 (r18137)
@@ -857,14 +857,11 @@ static void mpegts_push_data(MpegTSFilte
pes->header[2] == 0x01) {
/* it must be an mpeg2 PES stream */
code = pes->header[3] | 0x100;
- if (!((code >= 0x1c0 && code <= 0x1df) ||
+ if (!pes->st ||
+ !((code >= 0x1c0 && code <= 0x1df) ||
(code >= 0x1e0 && code <= 0x1ef) ||
(code == 0x1bd) || (code == 0x1fd)))
goto skip;
- if (!pes->st) {
- /* allocate stream */
- new_pes_av_stream(pes, code);
- }
pes->state = MPEGTS_PESHEADER_FILL;
pes->total_size = AV_RB16(pes->header + 4);
/* NOTE: a zero total size means the PES size is
More information about the ffmpeg-cvslog
mailing list