diff --git a/libavfilter/af_anequalizer.c b/libavfilter/af_anequalizer.c index 177e1c7b39..26cf835727 100644 --- a/libavfilter/af_anequalizer.c +++ b/libavfilter/af_anequalizer.c @@ -199,18 +199,6 @@ static av_cold int init(AVFilterContext *ctx) if (!pad.name) return AVERROR(ENOMEM); - if (s->draw_curves) { - vpad = (AVFilterPad){ - .name = av_strdup("out1"), - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_video, - }; - if (!vpad.name) { - av_freep(&pad.name); - return AVERROR(ENOMEM); - } - } - ret = ff_insert_outpad(ctx, 0, &pad); if (ret < 0) { av_freep(&pad.name); @@ -218,6 +206,14 @@ static av_cold int init(AVFilterContext *ctx) } if (s->draw_curves) { + vpad = (AVFilterPad){ + .name = av_strdup("out1"), + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_video, + }; + if (!vpad.name) { + return AVERROR(ENOMEM); + } ret = ff_insert_outpad(ctx, 1, &vpad); if (ret < 0) { av_freep(&vpad.name);