[FFmpeg-soc] [soc]: r5378 - wmapro/wmaprodec.c
faust3
subversion at mplayerhq.hu
Wed Sep 2 17:58:07 CEST 2009
Author: faust3
Date: Wed Sep 2 17:58:06 2009
New Revision: 5378
Log:
explain why two buffers are needed for the scale factors
Modified:
wmapro/wmaprodec.c
Modified: wmapro/wmaprodec.c
==============================================================================
--- wmapro/wmaprodec.c Wed Sep 2 16:43:53 2009 (r5377)
+++ wmapro/wmaprodec.c Wed Sep 2 17:58:06 2009 (r5378)
@@ -858,7 +858,11 @@ static int decode_scale_factors(WMAProDe
int* sf;
int* sf_end = s->channel[c].scale_factors + s->num_bands;
- /** resample scale factors for the new block size */
+ /** resample scale factors for the new block size
+ * as the scale factors might need to be resampled several times
+ * before some new values are transmitted, a backup of the last
+ * transmitted scale factors is kept in saved_scale_factors
+ */
if (s->channel[c].reuse_sf) {
const int8_t* sf_offsets = s->sf_offsets[s->table_idx][s->channel[c].table_idx];
int b;
More information about the FFmpeg-soc
mailing list