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:
parent
6eb08783a9
commit
d1122b7ce5
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user