Unified · Split
| @@ -1001,15 +1001,6 @@ static int config_output(AVFilterLink *outlink) · 1000 unmodified lines | ||
| 1001 | 1001 | check_stability(ctx, inlink->channels); |
| 1002 | 1002 | } |
| 1003 | 1003 | |
| 1004 | − av_frame_free(&s->video); | |
| 1005 | − if (s->response) { | |
| 1006 | − s->video = ff_get_video_buffer(ctx->outputs[1], s->w, s->h); | |
| 1007 | − if (!s->video) | |
| 1008 | − return AVERROR(ENOMEM); | |
| 1009 | − | |
| 1010 | − draw_response(ctx, s->video, inlink->sample_rate); | |
| 1011 | − } | |
| 1012 | − | |
| 1013 | 1004 | if (s->format == 0) |
| 1014 | 1005 | av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n"); |
| 1015 | 1006 | |
| @@ -1053,6 +1044,15 @@ static int config_output(AVFilterLink *outlink) · 37 unmodified lines | ||
| 1053 | 1044 | case AV_SAMPLE_FMT_S16P: s->iir_channel = s->process == 1 ? iir_ch_serial_s16p : iir_ch_s16p; break; |
| 1054 | 1045 | } |
| 1055 | 1046 | |
| 1047 | + av_frame_free(&s->video); | |
| 1048 | + if (s->response) { | |
| 1049 | + s->video = ff_get_video_buffer(ctx->outputs[1], s->w, s->h); | |
| 1050 | + if (!s->video) | |
| 1051 | + return AVERROR(ENOMEM); | |
| 1052 | + | |
| 1053 | + draw_response(ctx, s->video, inlink->sample_rate); | |
| 1054 | + } | |
| 1055 | + | |
| 1056 | 1056 | return 0; |
| 1057 | 1057 | } |
| 1058 | 1058 | |