diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-28 13:53:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-28 16:43:34 +0100 |
commit | cd7febd33f20b42aac14cf9cb87efdf619b39b0a (patch) | |
tree | 6826129a1f327836e1c980449b2fa7308307b615 /libavfilter/af_earwax.c | |
parent | 16af29a7a6deff3f6081fca1e36ad96cf8fec77d (diff) | |
download | ffmpeg-cd7febd33f20b42aac14cf9cb87efdf619b39b0a.tar.gz |
lavfi: replace filter_samples by filter_frame
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_earwax.c')
-rw-r--r-- | libavfilter/af_earwax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c index 6ce4a78f6a..56a6ae13b8 100644 --- a/libavfilter/af_earwax.c +++ b/libavfilter/af_earwax.c @@ -120,7 +120,7 @@ static inline int16_t *scalarproduct(const int16_t *in, const int16_t *endin, in return out; } -static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) +static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterLink *outlink = inlink->dst->outputs[0]; int16_t *taps, *endin, *in, *out; @@ -148,7 +148,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) // save part of input for next round memcpy(taps, endin, NUMTAPS * sizeof(*taps)); - ret = ff_filter_samples(outlink, outsamples); + ret = ff_filter_frame(outlink, outsamples); avfilter_unref_buffer(insamples); return ret; } @@ -160,7 +160,7 @@ AVFilter avfilter_af_earwax = { .priv_size = sizeof(EarwaxContext), .inputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_AUDIO, - .filter_samples = filter_samples, + .filter_frame = filter_frame, .config_props = config_input, .min_perms = AV_PERM_READ, }, { .name = NULL}}, |