changeset 9800:2865ea4eca4b

*** empty log message ***
author albeu
date Wed, 02 Apr 2003 19:23:28 +0000
parents fc300cd01240
children 2f02809d32a8
files libmpdemux/demux_rawaudio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rawaudio.c	Wed Apr 02 18:48:54 2003 +0000
+++ b/libmpdemux/demux_rawaudio.c	Wed Apr 02 19:23:28 2003 +0000
@@ -88,7 +88,7 @@
 
   pos -= (pos % (sh_audio->channels * sh_audio->samplesize) );
   stream_seek(s,pos);
-  //sh_audio->delay=pos / (float)(sh_audio->wf->nAvgBytesPerSec);
+  sh_audio->delay= (pos-ds_tell_pts(demuxer->audio)-sh_audio->a_in_buffer_len) / (float)(sh_audio->wf->nAvgBytesPerSec);
   resync_audio_stream(sh_audio);
 //  printf("demux_rawaudio: streamtell=%d\n",(int)stream_tell(demuxer->stream));
 }