]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_afir: remove unused variable
authorPaul B Mahol <onemda@gmail.com>
Wed, 26 Dec 2018 18:00:00 +0000 (19:00 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 26 Dec 2018 20:57:59 +0000 (21:57 +0100)
libavfilter/af_afir.c
libavfilter/af_afir.h

index 36fde60594f203618478732990ff17fa13999f51..7f384ef8fef2ab93befa593a8681849e6293ad90 100644 (file)
@@ -306,7 +306,6 @@ static int convert_coeffs(AVFilterContext *ctx)
     s->block_size = FFALIGN(s->fft_length, 32);
     s->coeff_size = FFALIGN(s->part_size + 1, 32);
     s->nb_partitions = (s->nb_taps + s->part_size - 1) / s->part_size;
-    s->nb_coeffs = s->ir_length + s->nb_partitions;
 
     for (ch = 0; ch < ctx->inputs[0]->channels; ch++) {
         s->sum[ch] = av_calloc(s->fft_length, sizeof(**s->sum));
index 13f7c98d72104aa94aaee7d88bc7a9463dc70f77..f2fe290843621db2c63241213b39696ba59d8aff 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef AVFILTER_AFIR_H
 #define AVFILTER_AFIR_H
 
-#include "libavutil/audio_fifo.h"
 #include "libavutil/common.h"
 #include "libavutil/float_dsp.h"
 #include "libavutil/opt.h"
@@ -53,7 +52,6 @@ typedef struct AudioFIRContext {
 
     int eof_coeffs;
     int have_coeffs;
-    int nb_coeffs;
     int nb_taps;
     int part_size;
     int part_index;
@@ -72,7 +70,6 @@ typedef struct AudioFIRContext {
     float **block;
     FFTComplex **coeff;
 
-    AVAudioFifo *fifo;
     AVFrame *in[2];
     AVFrame *buffer;
     AVFrame *video;