[FFmpeg-soc] [soc]: r4527 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Wed Jun 24 21:25:59 CEST 2009
Author: faust3
Date: Wed Jun 24 21:25:59 2009
New Revision: 4527
Log:
avoid modulo 4
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Wed Jun 24 21:12:28 2009 (r4526)
+++ wmapro/wma3dec.c Wed Jun 24 21:25:59 2009 (r4527)
@@ -395,7 +395,7 @@ static av_cold int decode_init(AVCodecCo
for (x=0;x < MAX_BANDS-1 && sfb_offsets[band-1] < subframe_len;x++) {
int offset = (subframe_len * 2 * critical_freq[x])
/ s->avctx->sample_rate + 2;
- offset -= offset % 4;
+ offset &= ~3;
if ( offset > sfb_offsets[band - 1] ) {
sfb_offsets[band] = offset;
++band;
More information about the FFmpeg-soc
mailing list