[Mplayer-cvslog] CVS: main/libmpdemux demux_avi.c,1.35,1.36

Arpi of Ize arpi at mplayer.dev.hu
Sun Nov 11 14:25:09 CET 2001


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

Modified Files:
	demux_avi.c 
Log Message:
-nobps NaN fixed

Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_avi.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- demux_avi.c	24 Oct 2001 00:50:54 -0000	1.35
+++ demux_avi.c	11 Nov 2001 13:25:06 -0000	1.36
@@ -87,7 +87,9 @@
 //          printf("\rYYY-A  A: %5.3f  V: %5.3f  \n",priv->avi_audio_pts,priv->avi_video_pts);
           if(priv->pts_has_video){
 	      // we have video pts now
-	      float delay=(float)priv->pts_corr_bytes/((sh_audio_t*)(ds->sh))->wf->nAvgBytesPerSec;
+	      float delay=0;
+	      if(((sh_audio_t*)(ds->sh))->wf->nAvgBytesPerSec)
+	          delay=(float)priv->pts_corr_bytes/((sh_audio_t*)(ds->sh))->wf->nAvgBytesPerSec;
 	      mp_msg(MSGT_DEMUX,MSGL_V,"XXX initial  v_pts=%5.3f  a_pos=%d (%5.3f) \n",priv->avi_audio_pts,priv->pts_corr_bytes,delay);
 	      //priv->pts_correction=-priv->avi_audio_pts+delay;
 	      priv->pts_correction=delay-priv->avi_audio_pts;




More information about the MPlayer-cvslog mailing list