Browse code

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>

Paul B Mahol authored on 2013/01/24 04:21:01
Showing 1 changed files
... ...
@@ -91,17 +91,6 @@ static int query_formats(AVFilterContext *ctx)
91 91
     return 0;
92 92
 }
93 93
 
94
-static int config_input(AVFilterLink *inlink)
95
-{
96
-    if (inlink->sample_rate != 44100) {
97
-        av_log(inlink->dst, AV_LOG_ERROR,
98
-               "The earwax filter only works for 44.1kHz audio. Insert "
99
-               "a resample filter before this\n");
100
-        return AVERROR(EINVAL);
101
-    }
102
-    return 0;
103
-}
104
-
105 94
 //FIXME: replace with DSPContext.scalarproduct_int16
106 95
 static inline int16_t *scalarproduct(const int16_t *in, const int16_t *endin, int16_t *out)
107 96
 {
... ...
@@ -158,7 +147,6 @@ static const AVFilterPad earwax_inputs[] = {
158 158
         .name         = "default",
159 159
         .type         = AVMEDIA_TYPE_AUDIO,
160 160
         .filter_frame = filter_frame,
161
-        .config_props = config_input,
162 161
         .min_perms    = AV_PERM_READ,
163 162
     },
164 163
     { NULL }