Browse Source

avfilter/af_afir: fix picking of IR channel

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.1
Paul B Mahol 7 years ago
parent
commit
d0e740b8fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_afir.c

+ 1
- 1
libavfilter/af_afir.c View File

@@ -230,7 +230,7 @@ static void draw_response(AVFilterContext *ctx, AVFrame *out)
if (!mag || !phase)
goto end;

channel = av_clip(s->ir_channel, 0, s->in[1]->channels);
channel = av_clip(s->ir_channel, 0, s->in[1]->channels - 1);
for (i = 0; i < s->w; i++) {
const float *src = (const float *)s->in[1]->extended_data[channel];
double w = i * M_PI / (s->w - 1);


Loading…
Cancel
Save