summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);