summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_vox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_vox.c')
-rw-r--r--src/demuxers/demux_vox.c7
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;