1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 21:31:52 +00:00
mpv/audio/filter
wm4 e0f8d79772 af_lavrresample: fix unintended audio drift when setting playback speed
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.
2015-10-14 18:51:12 +02:00
..
af_channels.c Update license headers 2015-04-13 12:10:01 +02:00
af_delay.c Update license headers 2015-04-13 12:10:01 +02:00
af_drc.c audio/filter: remove reentrancy flag 2015-09-20 14:44:44 +02:00
af_equalizer.c audio/filter: remove reentrancy flag 2015-09-20 14:44:44 +02:00
af_format.c audio/filters: use refcounted frames for some simple filters 2015-01-13 20:16:59 +01:00
af_lavcac3enc.c audio: remove unused legacy libavutil header 2015-08-07 02:41:39 +02:00
af_lavfi.c af_lavfi: implement af-metadata property 2015-09-11 23:04:02 +02:00
af_lavrresample.c af_lavrresample: fix unintended audio drift when setting playback speed 2015-10-14 18:51:12 +02:00
af_pan.c Update license headers 2015-04-13 12:10:01 +02:00
af_rubberband.c af_rubberband: actually fix deadlock 2015-02-12 10:15:12 +01:00
af_scaletempo.c Update license headers 2015-04-13 12:10:01 +02:00
af_volume.c audio/filter: remove reentrancy flag 2015-09-20 14:44:44 +02:00
af.c audio/filter: remove reentrancy flag 2015-09-20 14:44:44 +02:00
af.h audio/filter: remove reentrancy flag 2015-09-20 14:44:44 +02:00
equalizer.h Update license headers 2015-04-13 12:10:01 +02:00
tools.c af: move af_from_dB() function to af_volume.c 2015-06-23 15:11:23 +02:00