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
This commit is contained in:
reimar 2010-12-08 22:53:52 +00:00 committed by Uoti Urpala
parent 920d0976e7
commit 41270c50cf
1 changed files with 1 additions and 2 deletions

View File

@ -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: