From 15cc6a7bba7e33d33657eba50d51230dae1430f6 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Wed, 23 Apr 2003 00:38:48 +0000 Subject: this should fix time-based seeking beyond the 2GB mark in a file CVS patchset: 4653 CVS date: 2003/04/23 00:38:48 --- src/demuxers/demux_mpeg.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index 4b78d7a57..b7a4dc99e 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.108 2003/03/17 22:54:44 f1rmb Exp $ + * $Id: demux_mpeg.c,v 1.109 2003/04/23 00:38:48 tmmm Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -836,8 +836,11 @@ static int demux_mpeg_seek (demux_plugin_t *this_gen, if ((this->input->get_capabilities (this->input) & INPUT_CAP_SEEKABLE) != 0 ) { - if ( (!start_pos) && (start_time)) - start_pos = start_time * this->rate * 50; + if ( (!start_pos) && (start_time)) { + start_pos = start_time; + start_pos *= this->rate; + start_pos *= 50; + } this->input->seek (this->input, start_pos+4, SEEK_SET); -- cgit v1.2.3