diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-11-14 12:45:33 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-11-14 12:45:33 +0000 |
commit | 5e683f0ee847486cf4b5556e95c383b0568374c1 (patch) | |
tree | 280fb72df83d4ceea6952379f7e9d126fee4f1e3 /src | |
parent | cb865c28a93efd16686ead102a165fec0a1b2fda (diff) | |
download | xine-lib-5e683f0ee847486cf4b5556e95c383b0568374c1.tar.gz xine-lib-5e683f0ee847486cf4b5556e95c383b0568374c1.tar.bz2 |
(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
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_ts.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |