diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-11 13:25:06 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-11 13:25:06 +0000 |
commit | 28695eedd88737c462e3f9980be4a40377e2d2b3 (patch) | |
tree | 16f7d40922b04f5ca80b3f8c534b2d5c716f811e /libmpdemux | |
parent | 148f27c15f49542855289e889dbea9fa70512d16 (diff) |
-nobps NaN fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2827 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_avi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/demux_avi.c b/libmpdemux/demux_avi.c index cc08073b1b..ba8e74960c 100644 --- a/libmpdemux/demux_avi.c +++ b/libmpdemux/demux_avi.c @@ -87,7 +87,9 @@ static int demux_avi_read_packet(demuxer_t *demux,unsigned int id,unsigned int l // 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; |