s->delay_frame->nb_samples = new_size;
s->delay_frame->channel_layout = inlink->channel_layout;
- return av_frame_get_buffer(s->delay_frame, 32);
+ return av_frame_get_buffer(s->delay_frame, 0);
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const unsigned delay = s->delay;
const double dry = s->dry;
const double wet = s->wet;
- unsigned r_ptr, w_ptr;
+ unsigned r_ptr, w_ptr = 0;
AVFrame *out;
int n, ch;
{ NULL }
};
-AVFilter ff_af_compensationdelay = {
+const AVFilter ff_af_compensationdelay = {
.name = "compensationdelay",
.description = NULL_IF_CONFIG_SMALL("Audio Compensation Delay Line."),
.query_formats = query_formats,