[Mplayer-cvslog] CVS: main/libmpdemux demux_rawaudio.c,1.7,1.8

Alban Bedel CVS albeu at mplayerhq.hu
Wed Apr 2 21:23:52 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv4246/libmpdemux

Modified Files:
	demux_rawaudio.c 
Log Message:


Index: demux_rawaudio.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rawaudio.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- demux_rawaudio.c	30 Mar 2003 17:11:27 -0000	1.7
+++ demux_rawaudio.c	2 Apr 2003 19:23:28 -0000	1.8
@@ -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));
 }



More information about the MPlayer-cvslog mailing list