mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Revert "avfilter/af_aiir: move response drawing as last step"
This reverts commit ca7095a907
.
This commit is contained in:
parent
3fc7b01c52
commit
6485b54477
@ -1028,6 +1028,15 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
check_stability(ctx, inlink->channels);
|
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)
|
if (s->format == 0)
|
||||||
av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n");
|
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;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user