Do not generate nonsensical pts values for FLAC audio.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 8 Dec 2010 22:53:52 +0000 (22:53 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 8 Dec 2010 22:53:52 +0000 (22:53 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32678 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpdemux/demux_audio.c

index d0da80a..f8944c8 100644 (file)
@@ -588,8 +588,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: