[Mplayer-cvslog] CVS: main/libmpdemux demux_avi.c,1.39,1.40

Arpi of Ize arpi at mplayerhq.hu
Fri Jul 5 00:17:34 CEST 2002


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

Modified Files:
	demux_avi.c 
Log Message:
hopefully fixed last A-V sync bug, and also fixed largefile bug in debug printf

Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_avi.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- demux_avi.c	12 May 2002 01:51:09 -0000	1.39
+++ demux_avi.c	4 Jul 2002 22:17:30 -0000	1.40
@@ -635,15 +635,19 @@
             int id=((AVIINDEXENTRY *)priv->idx)[i].ckid;
             if(avi_stream_id(id)==d_audio->id){
                 len=((AVIINDEXENTRY *)priv->idx)[i].dwChunkLength;
-                audio_chunk_pos=i; ++d_audio->pack_no;
+                ++d_audio->pack_no;
                 if(d_audio->dpos<=curr_audio_pos && curr_audio_pos<(d_audio->dpos+len)){
                   break;
                 }
                 d_audio->dpos+=len;
             }
           }
+	  audio_chunk_pos=i;
 	  skip_audio_bytes=curr_audio_pos-d_audio->dpos;
 
+          mp_msg(MSGT_SEEK,MSGL_V,"SEEK: i=%d (max:%d) dpos=%d (wanted:%d)  \n",
+	      i,chunk_max,(int)d_audio->dpos,curr_audio_pos);
+	      
 	} else {
 	    // VBR audio
 	    int chunks=(priv->avi_video_pts)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;
@@ -705,8 +709,8 @@
 
 
           mp_msg(MSGT_SEEK,MSGL_V,"SEEK: idx=%d  (a:%d v:%d)  v.skip=%d  a.skip=%d/%4.3f  \n",
-            priv->idx_pos,audio_chunk_pos,video_chunk_pos,
-            priv->skip_video_frames,skip_audio_bytes,skip_audio_secs);
+            (int)priv->idx_pos,audio_chunk_pos,video_chunk_pos,
+            (int)priv->skip_video_frames,skip_audio_bytes,skip_audio_secs);
 
           if(skip_audio_bytes){
             demux_read_data(d_audio,NULL,skip_audio_bytes);




More information about the MPlayer-cvslog mailing list