[FFmpeg-soc] [soc]: r4303 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Sat May 23 20:00:43 CEST 2009
Author: faust3
Date: Sat May 23 20:00:43 2009
New Revision: 4303
Log:
evaluate the condition with the higher probability during run length decoding first
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Sat May 23 19:54:29 2009 (r4302)
+++ wmapro/wma3dec.c Sat May 23 20:00:43 2009 (r4303)
@@ -824,9 +824,12 @@ static int wma_decode_coeffs(WMA3DecodeC
int val;
idx = get_vlc2(&s->getbit, vlc->table, VLCBITS, vlcmax);
- if( idx == 1)
+ if( idx > 1){
+ cur_coeff += run[idx];
+ val = level[idx];
+ }else if( idx == 1)
break;
- else if(!idx){
+ else{
val = wma_get_large_val(s);
/** escape decode */
if(get_bits(&s->getbit,1)){
@@ -839,9 +842,6 @@ static int wma_decode_coeffs(WMA3DecodeC
}else
cur_coeff += get_bits(&s->getbit,2) + 1;
}
- }else{
- cur_coeff += run[idx];
- val = level[idx];
}
sign = get_bits(&s->getbit,1) - 1;
if(cur_coeff < s->subframe_len)
More information about the FFmpeg-soc
mailing list