Browse Source

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>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
d1122b7ce5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/wmadec.c

+ 3
- 0
libavcodec/wmadec.c 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;



Loading…
Cancel
Save