summaryrefslogtreecommitdiff
path: root/libavfilter/af_earwax.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-01-23 19:21:01 +0000
committerPaul B Mahol <onemda@gmail.com>2013-01-24 10:37:44 +0000
commite65046bf836bd8609f6d3850fff0f0dccafa4d6a (patch)
tree5672a9d40b4daa2d56134843fb02561254b8e029 /libavfilter/af_earwax.c
parentfc50175ba21f3ee7b600176c62476c3cf1bb06ef (diff)
downloadffmpeg-e65046bf836bd8609f6d3850fff0f0dccafa4d6a.tar.gz
lavfi/earwax: remove config_input()
This is wrong function to check for input parameters. Function is not needed because query_formats() already sets supported sample rates. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_earwax.c')
-rw-r--r--libavfilter/af_earwax.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c
index eaf6b05d7b..a169d2aaf1 100644
--- a/libavfilter/af_earwax.c
+++ b/libavfilter/af_earwax.c
@@ -91,17 +91,6 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
-static int config_input(AVFilterLink *inlink)
-{
- if (inlink->sample_rate != 44100) {
- av_log(inlink->dst, AV_LOG_ERROR,
- "The earwax filter only works for 44.1kHz audio. Insert "
- "a resample filter before this\n");
- return AVERROR(EINVAL);
- }
- return 0;
-}
-
//FIXME: replace with DSPContext.scalarproduct_int16
static inline int16_t *scalarproduct(const int16_t *in, const int16_t *endin, int16_t *out)
{
@@ -158,7 +147,6 @@ static const AVFilterPad earwax_inputs[] = {
.name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.filter_frame = filter_frame,
- .config_props = config_input,
.min_perms = AV_PERM_READ,
},
{ NULL }