#364 possible division by zero in wmadec.c

closed-fixed
nobody
None
5
2007-05-30
2006-08-26
Anonymous
No

in function wma_decode_init() :

...
// compute the scale factor band sizes for each MDCT
block size
{
...
b = s->sample_rate;
pos = ((block_len * 2 * a) + (b >> 1)) / b;
...

if AVCodec.samplerate was not manually set before
calling avcodec_open().

maybe add if( 8000 > b ) b = 8000; ?

thanks, finn anklam

Discussion

    • status: open --> closed-fixed