diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-08 01:31:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-08 01:46:22 +0100 |
commit | d1122b7ce5f5d9bb9bcdf5efe67e76778cd4260a (patch) | |
tree | 3e787ec306745ad55986577d8e7113b42b394b73 /libavcodec/wmadec.c | |
parent | 6eb08783a97821e731e249d70bbb39eefabbf17f (diff) | |
download | ffmpeg-d1122b7ce5f5d9bb9bcdf5efe67e76778cd4260a.tar.gz |
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>
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; i<MAX_CHANNELS; i++) + s->max_exponent[i] = 1.0; + if(ff_wma_init(avctx, flags2)<0) return -1; |