summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_lavrresample.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-13 20:14:02 +0100
committerwm4 <wm4@nowhere>2015-01-13 20:14:02 +0100
commit0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2 (patch)
treeedf7dcb12a658c2606653cb3b2dcaa3ac3acda99 /audio/filter/af_lavrresample.c
parent9418f884750e2837c51dea9bd300a5e4b3a8f16c (diff)
downloadmpv-0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2.tar.bz2
mpv-0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2.tar.xz
audio/filter: remove unused af_calc_filter_multiplier()
The purpose of this function was to filter only as much audio input as needed to produce a certain amount of audio output. This could (in theory) avoid excessive buffering when e.g. changing playback speed with resampling. Use of this was already removed in commit 5fd8a1e0. No problems were experienced, so let's assume this feature is practically worthless. (Though it's possible that it was quite useful over a decade ago, or in some cornercases with evil files.)
Diffstat (limited to 'audio/filter/af_lavrresample.c')
-rw-r--r--audio/filter/af_lavrresample.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c
index 8dce52cf67..dc777e9b2c 100644
--- a/audio/filter/af_lavrresample.c
+++ b/audio/filter/af_lavrresample.c
@@ -248,8 +248,6 @@ static int control(struct af_instance *af, int cmd, void *arg)
if (af_to_avformat(out->format) == AV_SAMPLE_FMT_NONE)
mp_audio_set_format(out, in->format);
- af->mul = out->rate / (double)in->rate;
-
int r = ((in->format == orig_in.format) &&
mp_chmap_equals(&in->channels, &orig_in.channels))
? AF_OK : AF_FALSE;