summaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-12 11:54:08 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-12 11:54:08 +0200
commita66cce61ad0d62c9b4c24a9262b7182f865aca5b (patch)
tree43d2d151d2abae2c2f10d64b8e241b33aa8aa409 /options.h
parente7d3e63a3f97b17f20780914b90132b3a1f72909 (diff)
downloadmpv-a66cce61ad0d62c9b4c24a9262b7182f865aca5b.tar.bz2
mpv-a66cce61ad0d62c9b4c24a9262b7182f865aca5b.tar.xz
audio: don't try to send partial samples to AO at EOF
At least with PCM it's possible to get an audio stream that doesn't end at a multiple of whole sample per channel. At least ao_alsa refuses to accept that part of input, and so EOF detection in fill_audio_out_buffers didn't trigger until the 0.04 second sanity check (as there "was still audio not sent to AO left"). Change the logic to detect EOF if there's less than one sample per channel of unsent data left.
Diffstat (limited to 'options.h')
0 files changed, 0 insertions, 0 deletions