in function wma_decode_init() :
// compute the scale factor band sizes for each MDCT
b = s->sample_rate;
pos = ((block_len * 2 * a) + (b >> 1)) / b;
if AVCodec.samplerate was not manually set before
maybe add if( 8000 > b ) b = 8000; ?
thanks, finn anklam
Log in to post a comment.