[FFmpeg-soc] [soc]: r2476 - aacenc/aacenc.c
kostya
subversion at mplayerhq.hu
Wed Jun 18 15:16:11 CEST 2008
Author: kostya
Date: Wed Jun 18 15:16:11 2008
New Revision: 2476
Log:
Save full data after 8 short window transforms.
Modified:
aacenc/aacenc.c
Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c (original)
+++ aacenc/aacenc.c Wed Jun 18 15:16:11 2008
@@ -254,13 +254,12 @@ static void analyze(AVCodecContext *avct
}
ff_mdct_calc(&s->mdct1024, cpe->ch[channel].coeffs, s->output, s->tmp);
}else{
- //XXX: wrong but works
for (k = 0; k < 1024; k += 128) {
- memcpy(s->output, cpe->ch[channel].saved, sizeof(float)*128);
+ memcpy(s->output, cpe->ch[channel].saved + k + !k*1024 - 128, sizeof(float)*128);
j = channel + k * avctx->channels;
for (i = 0; i < 128; i++, j += avctx->channels){
s->output[i+128] = audio[j] / 512 * s->kbd_short_128[128 - i - 1];
- cpe->ch[channel].saved[i] = audio[j] / 512 * s->kbd_short_128[i];
+ cpe->ch[channel].saved[i+k] = audio[j] / 512 * s->kbd_short_128[i];
}
ff_mdct_calc(&s->mdct128, cpe->ch[channel].coeffs + k, s->output, s->tmp);
}
More information about the FFmpeg-soc
mailing list