aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-12-08 22:53:52 +0000
committerGravatar Uoti Urpala <uau@glyph.nonexistent.invalid>2010-12-16 05:28:28 +0200
commit41270c50cfb7b7a3b76cfbc0c8494b4a9df33da9 (patch)
tree7964cc8f337f85ba0338e4659befb9036e8f93d2
parent920d0976e7f657b34804b39bfbb4785fd24a76f0 (diff)
demux_audio: Do not generate nonsensical pts values for FLAC
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32678 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c
index a39aef2bba..815d3aec9c 100644
--- a/libmpdemux/demux_audio.c
+++ b/libmpdemux/demux_audio.c
@@ -584,8 +584,7 @@ static int demux_audio_fill_buffer(demuxer_t *demux, demux_stream_t *ds) {
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: