From f192128aef4e132bfd66d24face1fab9f3132f55 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sun, 25 Aug 2002 00:29:49 +0000 Subject: Fix seeking with streams that don't have pts. CVS patchset: 2512 CVS date: 2002/08/25 00:29:49 --- src/demuxers/demux_mpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index d846143d5..ae37831f2 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.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_mpeg.c,v 1.71 2002/08/07 03:13:37 tmmm Exp $ + * $Id: demux_mpeg.c,v 1.72 2002/08/25 00:29:49 tmattern Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -235,7 +235,7 @@ static void check_newpts( demux_mpeg_t *this, int64_t pts, int video ) diff = pts - this->last_pts[video]; - if( !this->preview_mode && pts && + if( !this->preview_mode && (pts || this->buf_flag_seek) && (this->send_newpts || (this->last_pts[video] && abs(diff)>WRAP_THRESHOLD) ) ) { if (this->buf_flag_seek) { -- cgit v1.2.3