X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_compensationdelay.c;h=f2e0dcd467fe5b09b4f797260af5f7f9b2d033f8;hb=a04ad248a05e7b613abe09b3bb067f555108d794;hp=05285cd29757b9d07ba711ab938d524411ac1fa0;hpb=22219a3ac46ac18f797c94e4619a34728556786c;p=ffmpeg diff --git a/libavfilter/af_compensationdelay.c b/libavfilter/af_compensationdelay.c index 05285cd2975..f2e0dcd467f 100644 --- a/libavfilter/af_compensationdelay.c +++ b/libavfilter/af_compensationdelay.c @@ -115,7 +115,7 @@ static int config_input(AVFilterLink *inlink) 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) @@ -127,7 +127,7 @@ 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; @@ -186,7 +186,7 @@ static const AVFilterPad compensationdelay_outputs[] = { { 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,