[FFmpeg-soc] [soc]: r4031 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Sun Feb 8 22:12:08 CET 2009
Author: faust3
Date: Sun Feb 8 22:12:08 2009
New Revision: 4031
Log:
esc_len depends on subframe_len therefore
calculate it directly after setting subframe_len
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Sun Feb 8 22:00:10 2009 (r4030)
+++ wmapro/wma3dec.c Sun Feb 8 22:12:08 2009 (r4031)
@@ -797,7 +797,6 @@ static int decode_coeffs(WMA3DecodeConte
av_log(s->avctx,AV_LOG_DEBUG,"decode coefficients for channel %i\n",c);
- s->esc_len = av_log2(s->subframe_len -1) +1;
vlctable = get_bits(s->getbit, 1);
vlc = &s->coef_vlc[vlctable];
vlcmax = s->coef_max[vlctable];
@@ -1175,6 +1174,7 @@ static int wma_decode_subframe(WMA3Decod
}
s->subframe_len = subframe_len;
+ s->esc_len = av_log2(s->subframe_len - 1) + 1;
/** skip extended header if any */
if(get_bits(s->getbit,1)){
More information about the FFmpeg-soc
mailing list