Mercurial > mplayer.hg
changeset 19183:942000d171f4
demuxer might not set i_bps, so do not divide by it in that case
author | reimar |
---|---|
date | Wed, 26 Jul 2006 18:52:33 +0000 |
parents | c68cf9a578a8 |
children | 3f2de7ba8aa0 |
files | mplayer.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Wed Jul 26 17:22:01 2006 +0000 +++ b/mplayer.c Wed Jul 26 18:52:33 2006 +0000 @@ -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; }