mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
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:
parent
920d0976e7
commit
41270c50cf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user