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
10011001 check_stability(ctx, inlink->channels);
10021002 }
10031003
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−
10131004 if (s->format == 0)
10141005 av_log(ctx, AV_LOG_WARNING, "tf coefficients format is not recommended for too high number of zeros/poles.\n");
10151006
@@ -1053,6 +1044,15 @@ static int config_output(AVFilterLink *outlink) · 37 unmodified lines
10531044 case AV_SAMPLE_FMT_S16P: s->iir_channel = s->process == 1 ? iir_ch_serial_s16p : iir_ch_s16p; break;
10541045 }
10551046
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+
10561056 return 0;
10571057 }
10581058

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