avfilter/avfilter: Remove unused partial_buf

It is unused since 02aa0701ae.
The corresponding size field is write-only since then.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/364/head
Andreas Rheinhardt 3 years ago
parent b3a0548a98
commit 304cb08693
  1. 2
      libavfilter/af_firequalizer.c
  2. 6
      libavfilter/af_loudnorm.c
  3. 2
      libavfilter/af_lv2.c
  4. 1
      libavfilter/af_replaygain.c
  5. 1
      libavfilter/avf_aphasemeter.c
  6. 1
      libavfilter/avfilter.c
  7. 13
      libavfilter/avfilter.h
  8. 3
      libavfilter/buffersink.c
  9. 3
      libavfilter/f_ebur128.c

@ -837,7 +837,7 @@ static int config_input(AVFilterLink *inlink)
inlink->sample_rate, inlink->channels, s->analysis_rdft_len, s->rdft_len, s->fir_len, s->nsamples_max);
if (s->fixed)
inlink->min_samples = inlink->max_samples = inlink->partial_buf_size = s->nsamples_max;
inlink->min_samples = inlink->max_samples = s->nsamples_max;
return generate_kernel(ctx, SELECT_GAIN(s), SELECT_GAIN_ENTRY(s));
}

@ -504,8 +504,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->pts +=
out->nb_samples =
inlink->min_samples =
inlink->max_samples =
inlink->partial_buf_size = subframe_length;
inlink->max_samples = subframe_length;
s->frame_type = INNER_FRAME;
break;
@ -761,8 +760,7 @@ static int config_input(AVFilterLink *inlink)
if (s->frame_type != LINEAR_MODE) {
inlink->min_samples =
inlink->max_samples =
inlink->partial_buf_size = frame_size(inlink->sample_rate, 3000);
inlink->max_samples = frame_size(inlink->sample_rate, 3000);
}
s->pts = AV_NOPTS_VALUE;

@ -380,7 +380,7 @@ static int config_output(AVFilterLink *outlink)
lilv_plugin_has_feature(s->plugin, s->boundedBlockLength))) {
AVFilterLink *inlink = ctx->inputs[0];
inlink->partial_buf_size = inlink->min_samples = inlink->max_samples = 4096;
inlink->min_samples = inlink->max_samples = 4096;
}
return 0;

@ -359,7 +359,6 @@ static int config_input(AVFilterLink *inlink)
s->yule_hist_i = 20;
s->butter_hist_i = 4;
inlink->partial_buf_size =
inlink->min_samples =
inlink->max_samples = inlink->sample_rate / 20;

@ -131,7 +131,6 @@ static int config_input(AVFilterLink *inlink)
if (s->do_video) {
nb_samples = FFMAX(1, av_rescale(inlink->sample_rate, s->frame_rate.den, s->frame_rate.num));
inlink->partial_buf_size =
inlink->min_samples =
inlink->max_samples = nb_samples;
}

@ -177,7 +177,6 @@ void avfilter_link_free(AVFilterLink **link)
if (!*link)
return;
av_frame_free(&(*link)->partial_buf);
ff_framequeue_free(&(*link)->fifo);
ff_frame_pool_uninit((FFFramePool**)&(*link)->frame_pool);

@ -548,20 +548,9 @@ struct AVFilterLink {
*/
AVRational frame_rate;
/**
* Buffer partially filled with samples to achieve a fixed/minimum size.
*/
AVFrame *partial_buf;
/**
* Size of the partial buffer to allocate.
* Must be between min_samples and max_samples.
*/
int partial_buf_size;
/**
* Minimum number of samples to filter at once. If filter_frame() is
* called with fewer samples, it will accumulate them in partial_buf.
* called with fewer samples, it will accumulate them in fifo.
* This field and the related ones must not be changed after filtering
* has started.
* If 0, all related fields are ignored.

@ -199,8 +199,7 @@ void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size)
{
AVFilterLink *inlink = ctx->inputs[0];
inlink->min_samples = inlink->max_samples =
inlink->partial_buf_size = frame_size;
inlink->min_samples = inlink->max_samples = frame_size;
}
#define MAKE_AVFILTERLINK_ACCESSOR(type, field) \

@ -413,8 +413,7 @@ static int config_audio_input(AVFilterLink *inlink)
* filter_frame()). */
if (ebur128->metadata || (ebur128->peak_mode & PEAK_MODE_TRUE_PEAKS))
inlink->min_samples =
inlink->max_samples =
inlink->partial_buf_size = inlink->sample_rate / 10;
inlink->max_samples = inlink->sample_rate / 10;
return 0;
}

Loading…
Cancel
Save