History

avfilter/af_aiir: move response drawing as last step

Paul B Mahol committed 6 years ago

Commit ca7095a1 parent 8c825e41 file · +9 −9Browse files

Unified · Split

libavfilter/af_aiir.c+9−9
@@ -1001,15 +1001,6 @@ static int config_output(AVFilterLink *outlink) · 1000 unmodified lines
1001 check_stability(ctx, inlink->channels);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 if (s->format == 0)1004 if (s->format == 0)
1014 av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n");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 case AV_SAMPLE_FMT_S16P: s->iir_channel = s->process == 1 ? iir_ch_serial_s16p : iir_ch_s16p; break;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 return 0;1056 return 0;
1057}1057}
1058 1058

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t