[MPlayer-cvslog] r19188 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Wed Jul 26 20:52:33 CEST 2006
Author: reimar
Date: Wed Jul 26 20:52:33 2006
New Revision: 19188
Modified:
trunk/mplayer.c
Log:
demuxer might not set i_bps, so do not divide by it in that case
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Wed Jul 26 20:52:33 2006
@@ -2492,6 +2492,7 @@
// 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;
}
More information about the MPlayer-cvslog
mailing list