# HG changeset patch # User albeu # Date 1049311408 0 # Node ID 2865ea4eca4b9be1a478cb4a03087740604ff40d # Parent fc300cd0124003fb9d444267955d5ea5942c1fdd *** empty log message *** diff -r fc300cd01240 -r 2865ea4eca4b libmpdemux/demux_rawaudio.c --- 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)); }