Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-08 04:31:42 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-08 04:46:22 +0400
commitd1122b7ce5f5d9bb9bcdf5efe67e76778cd4260a (patch)
tree3e787ec306745ad55986577d8e7113b42b394b73 /libavcodec/wmadec.c
parent6eb08783a97821e731e249d70bbb39eefabbf17f (diff)
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.c3
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;