mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
e0f8d79772
Small adjustments to the playback speed use swr_set_compensation() to stretch the audio as it is required. But since large adjustments are now handled by actually reinitializing libswresample, the small adjustments get rounded off completely with typical frame sizes. Compensate for this by accounting for the rounding error and keeping track of fractional samples that should have been output to achieve the correct ratio. This fixes display sync mode behavior, which requires these adjustments to be relatively accurate. |
||
---|---|---|
.. | ||
decode | ||
filter | ||
out | ||
audio_buffer.c | ||
audio_buffer.h | ||
audio.c | ||
audio.h | ||
chmap_sel.c | ||
chmap_sel.h | ||
chmap.c | ||
chmap.h | ||
fmt-conversion.c | ||
fmt-conversion.h | ||
format.c | ||
format.h | ||
mixer.c | ||
mixer.h |