From 0bbd65b09cb80ee6a822b27a53e7ddfd5d249cf2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 13 Jan 2015 20:14:02 +0100 Subject: 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.) --- audio/filter/af_lavrresample.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'audio/filter/af_lavrresample.c') 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; -- cgit v1.2.3