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. |
||
---|---|---|
.. | ||
decode | ||
filter | ||
out | ||
aframe.c | ||
aframe.h | ||
chmap.c | ||
chmap.h | ||
chmap_avchannel.c | ||
chmap_avchannel.h | ||
chmap_sel.c | ||
chmap_sel.h | ||
fmt-conversion.c | ||
fmt-conversion.h | ||
format.c | ||
format.h |