summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacpsy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-26 20:59:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-26 20:59:57 +0200
commit21e5dd93d772ed23d0af3dbc9cdfc37f51b05629 (patch)
tree344657e839e17e2b481373879dfc4a8190dfd64d /libavcodec/aacpsy.c
parent0bf90ceb84a0e09cde5a020cd46ed45558b2be58 (diff)
downloadffmpeg-streaming-21e5dd93d772ed23d0af3dbc9cdfc37f51b05629.zip
ffmpeg-streaming-21e5dd93d772ed23d0af3dbc9cdfc37f51b05629.tar.gz
aacpsy: fix "may be used uninitialized" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacpsy.c')
-rw-r--r--libavcodec/aacpsy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
index 77dfec6..585a249 100644
--- a/libavcodec/aacpsy.c
+++ b/libavcodec/aacpsy.c
@@ -563,7 +563,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
AacPsyChannel *pch = &pctx->ch[channel];
int start = 0;
int i, w, g;
- float desired_bits, desired_pe, delta_pe, reduction, spread_en[128] = {0};
+ float desired_bits, desired_pe, delta_pe, reduction= NAN, spread_en[128] = {0};
float a = 0.0f, active_lines = 0.0f, norm_fac = 0.0f;
float pe = pctx->chan_bitrate > 32000 ? 0.0f : FFMAX(50.0f, 100.0f - pctx->chan_bitrate * 100.0f / 32000.0f);
const int num_bands = ctx->num_bands[wi->num_windows == 8];
OpenPOWER on IntegriCloud