Mercurial > mplayer.hg
changeset 32591:4cd3a8a22748
Do not generate nonsensical pts values for FLAC audio.
author | reimar |
---|---|
date | Wed, 08 Dec 2010 22:53:52 +0000 |
parents | 10b9ac971ef6 |
children | 9ec31cdc76ad |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Wed Dec 08 19:43:51 2010 +0000 +++ b/libmpdemux/demux_audio.c Wed Dec 08 22:53:52 2010 +0000 @@ -588,8 +588,7 @@ l = 65535; dp = new_demux_packet(l); l = stream_read(s,dp->buffer,l); - /* FLAC is not a constant-bitrate codec. These values will be wrong. */ - priv->next_pts += l/(double)sh_audio->i_bps; + priv->next_pts = MP_NOPTS_VALUE; break; } default: