summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-04-23 00:38:48 +0000
committerMike Melanson <mike@multimedia.cx>2003-04-23 00:38:48 +0000
commit15cc6a7bba7e33d33657eba50d51230dae1430f6 (patch)
tree30897e2b41bcc03eec08daa516a801b4703493b0
parent225e48d012fb05eb8f6a7d61802b04e87cf506ab (diff)
downloadxine-lib-15cc6a7bba7e33d33657eba50d51230dae1430f6.tar.gz
xine-lib-15cc6a7bba7e33d33657eba50d51230dae1430f6.tar.bz2
this should fix time-based seeking beyond the 2GB mark in a file
CVS patchset: 4653 CVS date: 2003/04/23 00:38:48
-rw-r--r--src/demuxers/demux_mpeg.c9
1 files 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);