[FFmpeg-cvslog] avfilter/af_afir: remove dead store variable

Paul B Mahol git at videolan.org
Thu Dec 27 00:08:01 EET 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec 26 22:30:10 2018 +0100| [d702600350de9667becf83fba922904a48409e66] | committer: Paul B Mahol

avfilter/af_afir: remove dead store variable

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d702600350de9667becf83fba922904a48409e66
---

 libavfilter/af_afir.c | 3 +--
 libavfilter/af_afir.h | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c
index 7f384ef8fe..f065c15300 100644
--- a/libavfilter/af_afir.c
+++ b/libavfilter/af_afir.c
@@ -300,7 +300,6 @@ static int convert_coeffs(AVFilterContext *ctx)
 
     for (n = av_log2(s->minp); (1 << n) < s->nb_taps; n++);
     N = FFMIN(n, av_log2(s->maxp));
-    s->ir_length = 1 << n;
     s->fft_length = (1 << (N + 1)) + 1;
     s->part_size = 1 << (N - 1);
     s->block_size = FFALIGN(s->fft_length, 32);
@@ -426,7 +425,7 @@ static int convert_coeffs(AVFilterContext *ctx)
     av_log(ctx, AV_LOG_DEBUG, "nb_taps: %d\n", s->nb_taps);
     av_log(ctx, AV_LOG_DEBUG, "nb_partitions: %d\n", s->nb_partitions);
     av_log(ctx, AV_LOG_DEBUG, "partition size: %d\n", s->part_size);
-    av_log(ctx, AV_LOG_DEBUG, "ir_length: %d\n", s->ir_length);
+    av_log(ctx, AV_LOG_DEBUG, "fft_length: %d\n", s->fft_length);
 
     s->have_coeffs = 1;
 
diff --git a/libavfilter/af_afir.h b/libavfilter/af_afir.h
index f2fe290843..72d8603100 100644
--- a/libavfilter/af_afir.h
+++ b/libavfilter/af_afir.h
@@ -59,7 +59,6 @@ typedef struct AudioFIRContext {
     int block_size;
     int nb_partitions;
     int nb_channels;
-    int ir_length;
     int fft_length;
     int nb_coef_channels;
     int one2many;



More information about the ffmpeg-cvslog mailing list