From 6425ba2985e7aebf08ab127458c9925e0dbe2c86 Mon Sep 17 00:00:00 2001 From: Andreas Heinchen Date: Wed, 23 Jun 2004 00:05:38 +0000 Subject: bugfix: changed call to seek from old to new behaviour CVS patchset: 6736 CVS date: 2004/06/23 00:05:38 --- src/demuxers/demux_ogg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_ogg.c b/src/demuxers/demux_ogg.c index ed1124f64..6a36bfbef 100644 --- a/src/demuxers/demux_ogg.c +++ b/src/demuxers/demux_ogg.c @@ -19,7 +19,7 @@ */ /* - * $Id: demux_ogg.c,v 1.146 2004/06/13 21:28:54 miguelfreitas Exp $ + * $Id: demux_ogg.c,v 1.147 2004/06/23 00:05:38 heinchen Exp $ * * demultiplexer for ogg streams * @@ -247,7 +247,8 @@ static void get_stream_length (demux_ogg_t *this) { if (filelength!=-1) { if (filelength>70000) { - this->demux_plugin.seek(&this->demux_plugin, (off_t) filelength-65536, 0, 0); + this->demux_plugin.seek(&this->demux_plugin, + (off_t) ( (double)(filelength-65536)/filelength*65535), 0, 0); } done=0; while (!done) { -- cgit v1.2.3