mirror of https://github.com/mpv-player/mpv
cf8b7ff0d6
This changes the emitted pts values from the start of the search block to the center of the search block. Change initial `output_time` accordingly. Initial `search_block_index` is irrelevant, because it's overwritten before the first iteration. Using the `output_time` removes the rounding of `search_block_index`, which also fixes the <20 microsecond gaps in timestamps between output packets. Rationale: The variance in audio position was in the range `0..search-interval`. With this change, the range is (- search-interval / 2)..(search-interval / 2)` which ensures lower maximum offset. |
||
---|---|---|
.. | ||
af_drop.c | ||
af_format.c | ||
af_lavcac3enc.c | ||
af_rubberband.c | ||
af_scaletempo.c | ||
af_scaletempo2.c | ||
af_scaletempo2_internals.c | ||
af_scaletempo2_internals.h |