Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-01 17:22:05 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-03 18:09:14 +0300
commit01d158d1c8295474fa2034612487b36a47adfd1d (patch)
treebcf43db50fc4b551283187b943e0fb7b50bb1685 /libavfilter/af_astats.c
parenta4798a5d5109cd9c1b5682efe19660e825da97e6 (diff)
all: Remove unused-but-set variables
Newer versions of Clang detect this and emit warnings for it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/af_astats.c')
-rw-r--r--libavfilter/af_astats.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c
index 0621d18b35..3955a4e8e9 100644
--- a/libavfilter/af_astats.c
+++ b/libavfilter/af_astats.c
@@ -403,7 +403,6 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata)
max_sigma_x = 0,
diff1_sum = 0,
diff1_sum_x2 = 0,
- sigma_x = 0,
sigma_x2 = 0,
noise_floor = 0,
entropy = 0,
@@ -428,7 +427,6 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata)
diff1_sum_x2 += p->diff1_sum_x2;
min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2);
max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2);
- sigma_x += p->sigma_x;
sigma_x2 += p->sigma_x2;
noise_floor = FFMAX(noise_floor, p->noise_floor);
noise_floor_count += p->noise_floor_count;
@@ -659,7 +657,6 @@ static void print_stats(AVFilterContext *ctx)
max_sigma_x = 0,
diff1_sum_x2 = 0,
diff1_sum = 0,
- sigma_x = 0,
sigma_x2 = 0,
noise_floor = 0,
entropy = 0,
@@ -684,7 +681,6 @@ static void print_stats(AVFilterContext *ctx)
diff1_sum += p->diff1_sum;
min_sigma_x2 = FFMIN(min_sigma_x2, p->min_sigma_x2);
max_sigma_x2 = FFMAX(max_sigma_x2, p->max_sigma_x2);
- sigma_x += p->sigma_x;
sigma_x2 += p->sigma_x2;
noise_floor = FFMAX(noise_floor, p->noise_floor);
p->entropy = calc_entropy(s, p);