From d1122b7ce5f5d9bb9bcdf5efe67e76778cd4260a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 8 Mar 2014 01:31:42 +0100 Subject: [PATCH] avcodec/wmadec: initialize max_exponent to valid values Fixes generation of NaN output Fixes: nan_example.wma Signed-off-by: Michael Niedermayer --- libavcodec/wmadec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index e6a0b04779..b1816b4eea 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -100,6 +100,9 @@ static av_cold int wma_decode_init(AVCodecContext * avctx) } } + for (i=0; imax_exponent[i] = 1.0; + if(ff_wma_init(avctx, flags2)<0) return -1;