summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-01 08:39:07 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-03 05:01:29 -0800
commit7019e0dcfe9f6edddfe8b20f062f8bb94110b3a0 (patch)
tree899fa5381652a5b3ace5478a57935bff7772dfdd /player
parent171ec0a7e40030f599b7b385b3699835e8c1eb2d (diff)
downloadmpv-7019e0dcfe9f6edddfe8b20f062f8bb94110b3a0.tar.bz2
mpv-7019e0dcfe9f6edddfe8b20f062f8bb94110b3a0.tar.xz
swresample: limit output size of audio frames
Similar to the previous commit, and for the same reasons. Unlike with af_scaletempo, resampling does not have a natural frame size, so we set an arbitrary size limit on output frames. We add a new option to control this size, although I'm not sure whether anyone will use it, so mark it for testing only. Note that we go through some effort to avoid buffering data in libswresample itself. One reason is that we might have to reinitialize the resampler completely when changing speed, which drops the buffered data. Another is that I'm not sure whether the resampler will do the right thing when applying dynamic speed changes.
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions