diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-06-13 21:28:52 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-06-13 21:28:52 +0000 |
commit | f85a943fdff3f12db8faf4b84e4f63aafdc60db3 (patch) | |
tree | e16cc52e6b9a9548714a1ee31a5265ff34127467 /src/demuxers/demux_vox.c | |
parent | 62f8ce9ec67fb85da1023b5db90a0a5f1609cff7 (diff) | |
download | xine-lib-f85a943fdff3f12db8faf4b84e4f63aafdc60db3.tar.gz xine-lib-f85a943fdff3f12db8faf4b84e4f63aafdc60db3.tar.bz2 |
implement steps 1, 2, 3 and 4 of the seeking proposal:
http://article.gmane.org/gmane.comp.video.xine.devel/9532
it is now up to demuxers to decide what the 0..65535 position means.
demuxers tested: ogg, voc, flac, rm, asf, vqa, vob, avi, y4m, au, mov, ts, mp3, mpg, wav, ra, mve
CVS patchset: 6686
CVS date: 2004/06/13 21:28:52
Diffstat (limited to 'src/demuxers/demux_vox.c')
-rw-r--r-- | src/demuxers/demux_vox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demuxers/demux_vox.c b/src/demuxers/demux_vox.c index 64846c2ba..53e8d2399 100644 --- a/src/demuxers/demux_vox.c +++ b/src/demuxers/demux_vox.c @@ -22,7 +22,7 @@ * VOX Demuxer by Mike Melanson (melanson@pcisys.net) * This a demuxer for .vox files containing raw Dialogic ADPCM data. * - * $Id: demux_vox.c,v 1.12 2004/01/09 01:26:33 miguelfreitas Exp $ + * $Id: demux_vox.c,v 1.13 2004/06/13 21:28:54 miguelfreitas Exp $ * */ @@ -89,8 +89,9 @@ static int demux_vox_send_chunk (demux_plugin_t *this_gen) { else buf->size = buf->max_size; - buf->extra_info->input_pos = current_file_pos; - buf->extra_info->input_length = this->input->get_length(this->input); + if( this->input->get_length (this->input) ) + buf->extra_info->input_normpos = (int)( (double) current_file_pos * + 65535 / this->input->get_length (this->input) ); buf->extra_info->input_time = audio_pts / 90; buf->pts = audio_pts; buf->decoder_flags |= BUF_FLAG_FRAME_END; |