summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_lavrresample.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-16 22:49:21 +0200
committerwm4 <wm4@nowhere>2015-06-16 22:49:21 +0200
commitb2781c11ed0ee68b42013df6000d5427a5c988f0 (patch)
tree12443d73f200337e0634186e623b3de3bdd2466e /audio/filter/af_lavrresample.c
parent552dc0d564c09874fe38cbd2cdd7c1d088a6e1a3 (diff)
downloadmpv-b2781c11ed0ee68b42013df6000d5427a5c988f0.tar.bz2
mpv-b2781c11ed0ee68b42013df6000d5427a5c988f0.tar.xz
af: remove conversion filter search
This attempted to find a minimal filter graph for a format conversion involving multiple conversion filters. With the last 2 commits it becomes dead code - remove it.
Diffstat (limited to 'audio/filter/af_lavrresample.c')
-rw-r--r--audio/filter/af_lavrresample.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c
index cfc3bc847d..5b6f93478b 100644
--- a/audio/filter/af_lavrresample.c
+++ b/audio/filter/af_lavrresample.c
@@ -177,12 +177,6 @@ static int check_output_conversion(int mp_format)
return af_to_avformat(mp_format);
}
-static bool test_conversion(int src_format, int dst_format)
-{
- return af_to_avformat(src_format) != AV_SAMPLE_FMT_NONE &&
- check_output_conversion(dst_format) != AV_SAMPLE_FMT_NONE;
-}
-
// mp_chmap_get_reorder() performs:
// to->speaker[n] = from->speaker[src[n]]
// but libavresample does:
@@ -547,7 +541,6 @@ const struct af_info af_info_lavrresample = {
.info = "Sample frequency conversion using libavresample",
.name = "lavrresample",
.open = af_open,
- .test_conversion = test_conversion,
.priv_size = sizeof(struct af_resample),
.priv_defaults = &(const struct af_resample) {
.opts = {