AVFILTER_DEFINE_CLASS(flanger);
-static int init(AVFilterContext *ctx)
+static av_cold int init(AVFilterContext *ctx)
{
FlangerContext *s = ctx->priv;
if (av_frame_is_writable(frame)) {
out_frame = frame;
} else {
- out_frame = ff_get_audio_buffer(inlink, frame->nb_samples);
+ out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples);
if (!out_frame) {
av_frame_free(&frame);
return AVERROR(ENOMEM);