diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-05-30 09:50:59 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-05-30 10:05:19 +0200 |
commit | 6485b54477e7f5d9feb382c4bd527279c5181261 (patch) | |
tree | 3617f9525f303faaaf6214d241e43c1b87fd040c /libavfilter/af_aiir.c | |
parent | 3fc7b01c52746cdfa13b99117642644d6bda38c8 (diff) | |
download | ffmpeg-6485b54477e7f5d9feb382c4bd527279c5181261.tar.gz |
Revert "avfilter/af_aiir: move response drawing as last step"
This reverts commit ca7095a9072fab4cdb41af12da9d94752e082e34.
Diffstat (limited to 'libavfilter/af_aiir.c')
-rw-r--r-- | libavfilter/af_aiir.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavfilter/af_aiir.c b/libavfilter/af_aiir.c index 36788c38b3..503d5b9329 100644 --- a/libavfilter/af_aiir.c +++ b/libavfilter/af_aiir.c @@ -1028,6 +1028,15 @@ static int config_output(AVFilterLink *outlink) check_stability(ctx, inlink->channels); } + av_frame_free(&s->video); + if (s->response) { + s->video = ff_get_video_buffer(ctx->outputs[1], s->w, s->h); + if (!s->video) + return AVERROR(ENOMEM); + + draw_response(ctx, s->video, inlink->sample_rate); + } + if (s->format == 0) av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n"); @@ -1071,15 +1080,6 @@ static int config_output(AVFilterLink *outlink) case AV_SAMPLE_FMT_S16P: s->iir_channel = s->process == 1 ? iir_ch_serial_s16p : iir_ch_s16p; break; } - av_frame_free(&s->video); - if (s->response) { - s->video = ff_get_video_buffer(ctx->outputs[1], s->w, s->h); - if (!s->video) - return AVERROR(ENOMEM); - - draw_response(ctx, s->video, inlink->sample_rate); - } - return 0; } |