summaryrefslogtreecommitdiffstats
path: root/libao2/ao_alsa.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-24 21:49:56 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-24 21:49:56 +0000
commitb12a08fe6ac6dcc7158e45af7c02b62713ea717f (patch)
tree8aadb2a353b1d3c4e81cf2a8a5a454ca010c4809 /libao2/ao_alsa.c
parent41a625a8697ab01d4cc72a15afe248b64d8f437d (diff)
downloadmpv-b12a08fe6ac6dcc7158e45af7c02b62713ea717f.tar.bz2
mpv-b12a08fe6ac6dcc7158e45af7c02b62713ea717f.tar.xz
demux_audio.c: Fix timestamp handling
The code calculated the pts values of audio packets by adding the length of the current packet to the pts of the previous one. The length of the previous packet should be added instead. This broke WAV timestamps near the end of the stream where a short packet occurs. Change the code to store the pts of the next packet instead of the last one. This fixes the WAV timestamps and allows some simplifications. MP3 timestamps are not affected as packets are always treated as constant decoded length, and FLAC timestamps still have worse problems (FLAC is treated as as if it was constant bitrate even though it isn't). Also store the timestamps as double instead of float. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24609 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_alsa.c')
0 files changed, 0 insertions, 0 deletions