From 0d39e76b1e2c8e62aa917a37e8f1aa7e3973881f Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 26 Jul 2006 18:52:33 +0000 Subject: [PATCH] demuxer might not set i_bps, so do not divide by it in that case git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19188 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mplayer.c b/mplayer.c index dbe8b2759e..73e86d51ac 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2492,6 +2492,7 @@ static double written_audio_pts(sh_audio_t *sh_audio, demux_stream_t *d_audio) // ds_tell_pts returns gets bytes read after last timestamp from // demuxing layer, decoder might use sh_audio->a_in_buffer for bytes // it has read but not decoded + if (sh_audio->i_bps) a_pts += (ds_tell_pts(d_audio) - sh_audio->a_in_buffer_len) / (double)sh_audio->i_bps; }