summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-10 22:45:07 +0100
committerwm4 <wm4@nowhere>2015-02-10 22:48:15 +0100
commitabbaaaa6e7b565758822fb6aa90ebbb10353f699 (patch)
treea5d2f209d30cc682cc78d0de6e876533189dd07d /wscript
parent81d8c5d519828b1d5de9a30d23ceeb6c4c9a1d15 (diff)
downloadmpv-abbaaaa6e7b565758822fb6aa90ebbb10353f699.tar.bz2
mpv-abbaaaa6e7b565758822fb6aa90ebbb10353f699.tar.xz
player: skip audio filter reinit on some types of speed changes
This avoids potentially dropping some small amount of audio data buffered in filters. Reinit can be skipped only if the filter is af_scaletempo (which maps to AF_CONTROL_SET_PLAYBACK_SPEED). The other case using af_lavrresample is much more complicated due to filter chain politics. Also, changing speed between 1.0 and something higher typically inserts or removes the filter, so this obviously requires reinitialization. It can be prevented by forcing the filter with --af=scaletempo.
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions