diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-05-12 16:56:00 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-05-12 17:12:06 +0200 |
commit | 2a4a364f6a00ae121ed1309b4f968362f69647fb (patch) | |
tree | 7a10abf9e382444d39201d74a146598c05e6aef6 /libavfilter | |
parent | 4fa4f1d7a9499032b8fcef8ed075294baf868be7 (diff) | |
download | ffmpeg-2a4a364f6a00ae121ed1309b4f968362f69647fb.tar.gz |
avfilter/af_astats: fix initial values of variables
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_astats.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index bb9a23a017..9c673b2392 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -174,10 +174,10 @@ static void reset_stats(AudioStatsContext *s) ChannelStats *p = &s->chstats[c]; p->min = p->nmin = p->min_sigma_x2 = DBL_MAX; - p->max = p->nmax = p->max_sigma_x2 = DBL_MIN; + p->max = p->nmax = p->max_sigma_x2 =-DBL_MAX; p->min_non_zero = DBL_MAX; p->min_diff = DBL_MAX; - p->max_diff = DBL_MIN; + p->max_diff = 0; p->sigma_x = 0; p->sigma_x2 = 0; p->avg_sigma_x2 = 0; @@ -339,15 +339,15 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata) uint64_t mask = 0, imask = 0xFFFFFFFFFFFFFFFF, min_count = 0, max_count = 0, nb_samples = 0; uint64_t nb_nans = 0, nb_infs = 0, nb_denormals = 0; double min_runs = 0, max_runs = 0, - min = DBL_MAX, max = DBL_MIN, min_diff = DBL_MAX, max_diff = 0, - nmin = DBL_MAX, nmax = DBL_MIN, + min = DBL_MAX, max =-DBL_MAX, min_diff = DBL_MAX, max_diff = 0, + nmin = DBL_MAX, nmax =-DBL_MAX, max_sigma_x = 0, diff1_sum = 0, diff1_sum_x2 = 0, sigma_x = 0, sigma_x2 = 0, min_sigma_x2 = DBL_MAX, - max_sigma_x2 = DBL_MIN; + max_sigma_x2 =-DBL_MAX; AVRational depth; int c; @@ -562,15 +562,15 @@ static void print_stats(AVFilterContext *ctx) uint64_t mask = 0, imask = 0xFFFFFFFFFFFFFFFF, min_count = 0, max_count = 0, nb_samples = 0; uint64_t nb_nans = 0, nb_infs = 0, nb_denormals = 0; double min_runs = 0, max_runs = 0, - min = DBL_MAX, max = DBL_MIN, min_diff = DBL_MAX, max_diff = 0, - nmin = DBL_MAX, nmax = DBL_MIN, + min = DBL_MAX, max =-DBL_MAX, min_diff = DBL_MAX, max_diff = 0, + nmin = DBL_MAX, nmax =-DBL_MAX, max_sigma_x = 0, diff1_sum_x2 = 0, diff1_sum = 0, sigma_x = 0, sigma_x2 = 0, min_sigma_x2 = DBL_MAX, - max_sigma_x2 = DBL_MIN; + max_sigma_x2 =-DBL_MAX; AVRational depth; int c; |