[FFmpeg-soc] [soc]: r5370 - wmapro/wmaprodec.c
faust3
subversion at mplayerhq.hu
Mon Aug 31 20:00:55 CEST 2009
Author: faust3
Date: Mon Aug 31 20:00:54 2009
New Revision: 5370
Log:
simplify subframe_len calculation
Modified:
wmapro/wmaprodec.c
Modified: wmapro/wmaprodec.c
==============================================================================
--- wmapro/wmaprodec.c Sun Aug 30 01:27:51 2009 (r5369)
+++ wmapro/wmaprodec.c Mon Aug 31 20:00:54 2009 (r5370)
@@ -468,7 +468,7 @@ static int decode_subframe_length(WMA3De
} else
log2_subframe_len = get_bits(&s->gb, s->subframe_len_bits);
- subframe_len = s->samples_per_frame / (1 << log2_subframe_len);
+ subframe_len = s->samples_per_frame >> log2_subframe_len;
/** sanity check the length */
if (subframe_len < s->min_samples_per_subframe
More information about the FFmpeg-soc
mailing list