[FFmpeg-soc] [soc]: r4370 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Mon Jun 1 16:19:40 CEST 2009
Author: faust3
Date: Mon Jun 1 16:19:40 2009
New Revision: 4370
Log:
factor out cur_subframe
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Mon Jun 1 16:11:10 2009 (r4369)
+++ wmapro/wma3dec.c Mon Jun 1 16:19:40 2009 (r4370)
@@ -1165,15 +1165,16 @@ static int wma_decode_subframe(WMA3Decod
/** get a list of all channels that contain the estimated block */
s->channels_for_cur_subframe = 0;
for(i=0;i<s->num_channels;i++){
+ const int cur_subframe = s->channel[i].cur_subframe;
/** substract already processed samples */
total_samples -= s->channel[i].decoded_samples;
/** and count if there are multiple subframes that match our profile */
if(offset == s->channel[i].decoded_samples &&
- subframe_len == s->channel[i].subframe_len[s->channel[i].cur_subframe]){
- total_samples -= s->channel[i].subframe_len[s->channel[i].cur_subframe];
+ subframe_len == s->channel[i].subframe_len[cur_subframe]){
+ total_samples -= s->channel[i].subframe_len[cur_subframe];
s->channel[i].decoded_samples +=
- s->channel[i].subframe_len[s->channel[i].cur_subframe];
+ s->channel[i].subframe_len[cur_subframe];
s->channel_indexes_for_cur_subframe[s->channels_for_cur_subframe] = i;
++s->channels_for_cur_subframe;
}
More information about the FFmpeg-soc
mailing list