[FFmpeg-soc] [soc]: r4530 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Wed Jun 24 21:47:00 CEST 2009
Author: faust3
Date: Wed Jun 24 21:47:00 2009
New Revision: 4530
Log:
replace division with shift
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Wed Jun 24 21:38:31 2009 (r4529)
+++ wmapro/wma3dec.c Wed Jun 24 21:47:00 2009 (r4530)
@@ -441,7 +441,7 @@ static av_cold int decode_init(AVCodecCo
/** calculate subwoofer cutoff values */
for (i=0;i< s->num_possible_block_sizes;i++) {
- int block_size = s->samples_per_frame / (1 << i);
+ int block_size = s->samples_per_frame >> i;
int cutoff = ceil(block_size * 440.0
/ (double)s->avctx->sample_rate + 0.5);
s->subwoofer_cutoffs[i] = av_clip(cutoff,4,block_size);
More information about the FFmpeg-soc
mailing list