From 5e683f0ee847486cf4b5556e95c383b0568374c1 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 14 Nov 2002 12:45:33 +0000 Subject: (patch) demux_ts_parse_packet does not check that the parsed PCR arrived on the designated PCR PID, which means that any PCR in the stream will be used. Peter Liljenberg, ESDG Konsult AB CVS patchset: 3259 CVS date: 2002/11/14 12:45:33 --- src/demuxers/demux_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c index d7d0e4576..3690ff317 100644 --- a/src/demuxers/demux_ts.c +++ b/src/demuxers/demux_ts.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_ts.c,v 1.63 2002/11/10 01:41:17 guenter Exp $ + * $Id: demux_ts.c,v 1.64 2002/11/14 12:45:33 miguelfreitas Exp $ * * Demultiplexer for MPEG2 Transport Streams. * @@ -1226,7 +1226,7 @@ static void demux_ts_parse_packet (demux_ts_t*this) { this->PCR = demux_ts_adaptation_field_parse (originalPkt+5, adaptation_field_length); - if (this->PCR) { + if (pid == this->pcrPid && this->PCR) { int64_t scr_diff = this->PCR - this->last_PCR; /* note: comparing (abs(scr_diff) > 90000) isn't reliable -- cgit v1.2.3