Commit d1122b7c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmadec: initialize max_exponent to valid values

Fixes generation of NaN output
Fixes: nan_example.wma
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6eb08783
......@@ -100,6 +100,9 @@ static av_cold int wma_decode_init(AVCodecContext * avctx)
}
}
for (i=0; i<MAX_CHANNELS; i++)
s->max_exponent[i] = 1.0;
if(ff_wma_init(avctx, flags2)<0)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment