[FFmpeg-devel] [PATCH] Split out Butterworth filter coeff init to a separate function.

Ronald S. Bultje rsbultje
Thu Jan 20 20:42:47 CET 2011


Hi,

On Thu, Jan 20, 2011 at 2:06 PM, Justin Ruggles
<justin.ruggles at gmail.com> wrote:
> ---
> ?libavcodec/iirfilter.c | ? 64 ++++++++++++++++++++++++++++++++++-------------
> ?1 files changed, 46 insertions(+), 18 deletions(-)
[..]
> +    if (filt_type == FF_FILTER_TYPE_BUTTERWORTH) {
> +        if (butterworth_init_coeffs(avc, c, filt_mode, order, cutoff_ratio,
> +            stopband)) {
> +            goto init_fail;
> +        }

Patch OK. This is most certainly to add more filters, so maybe add a
switch here with the else being default: at some point (not now).

Ronald



More information about the ffmpeg-devel mailing list