[FFmpeg-cvslog] lavfi/showspatial: Remove two write-only variables.

Carl Eugen Hoyos git at videolan.org
Fri May 31 23:31:37 EEST 2019


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Fri May 31 22:30:46 2019 +0200| [d1b4ea2f61754ed3ba524520e53024a8ca34feae] | committer: Carl Eugen Hoyos

lavfi/showspatial: Remove two write-only variables.

Fixes two warnings:
libavfilter/avf_showspatial.c:157:26: warning: variable ‘w’ set but not used
libavfilter/avf_showspatial.c:157:23: warning: variable ‘h’ set but not used

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

 libavfilter/avf_showspatial.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavfilter/avf_showspatial.c b/libavfilter/avf_showspatial.c
index 5a7657f845..80109a3055 100644
--- a/libavfilter/avf_showspatial.c
+++ b/libavfilter/avf_showspatial.c
@@ -154,16 +154,13 @@ static int config_output(AVFilterLink *outlink)
     AVFilterContext *ctx = outlink->src;
     AVFilterLink *inlink = ctx->inputs[0];
     ShowSpatialContext *s = ctx->priv;
-    int i, fft_bits, h, w;
+    int i, fft_bits;
     float overlap;
 
     outlink->w = s->w;
     outlink->h = s->h;
     outlink->sample_aspect_ratio = (AVRational){1,1};
 
-    h = s->h;
-    w = s->w;
-
     s->buf_size = 1 << av_log2(s->win_size);
     s->win_size = s->buf_size;
     fft_bits = av_log2(s->win_size);



More information about the ffmpeg-cvslog mailing list