diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-10 13:33:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-12 00:42:43 +0100 |
commit | 8364d607ac0c44be5cdbcdee0870cf504944fe44 (patch) | |
tree | f3ad0b9471ce9676f1e236b871f0b28eb8af9851 /libavcodec/aacsbr_fixed.c | |
parent | 21e42d9b0d3753534365b72bfef1aff9dfa37986 (diff) | |
download | ffmpeg-8364d607ac0c44be5cdbcdee0870cf504944fe44.tar.gz |
avcodec/aacsbr_fixed: Try to initialize sum[0..1] differently to fix build with VS2012
Found-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8a024f6a43444a73a3cd8d70abedde426b4e1986)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacsbr_fixed.c')
-rw-r--r-- | libavcodec/aacsbr_fixed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aacsbr_fixed.c b/libavcodec/aacsbr_fixed.c index f942d74615..8eb8c5867f 100644 --- a/libavcodec/aacsbr_fixed.c +++ b/libavcodec/aacsbr_fixed.c @@ -397,7 +397,8 @@ static void sbr_gain_calc(AACContext *ac, SpectralBandReplication *sbr, int delta = !((e == e_a[1]) || (e == e_a[0])); for (k = 0; k < sbr->n_lim; k++) { SoftFloat gain_boost, gain_max; - SoftFloat sum[2] = { FLOAT_0, FLOAT_0 }; + SoftFloat sum[2]; + sum[0] = sum[1] = FLOAT_0; for (m = sbr->f_tablelim[k] - sbr->kx[1]; m < sbr->f_tablelim[k + 1] - sbr->kx[1]; m++) { const SoftFloat temp = av_div_sf(sbr->e_origmapped[e][m], av_add_sf(FLOAT_1, sbr->q_mapped[e][m])); |