avcodec/wmadec: initialize max_exponent to valid values

Fixes generation of NaN output
Fixes: nan_example.wma
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-03-08 01:31:42 +01:00
parent 6eb08783a9
commit d1122b7ce5
1 changed files with 3 additions and 0 deletions

View File

@ -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;