[FFmpeg-soc] [soc]: r1821 - aac/aac.c
Michael Niedermayer
michaelni at gmx.at
Sat Jan 12 13:44:00 CET 2008
Hi
On Sat, Jan 12, 2008 at 08:28:03AM +0100, andoma wrote:
> Author: andoma
> Date: Sat Jan 12 08:28:03 2008
> New Revision: 1821
>
> Log:
> correctly clear coefficients which are not going to be initialized
>
>
>
> Modified:
> aac/aac.c
>
> Modified: aac/aac.c
> ==============================================================================
> --- aac/aac.c (original)
> +++ aac/aac.c Sat Jan 12 08:28:03 2008
> @@ -1215,10 +1215,13 @@ static void pulse_tool(AACContext * ac,
> static void quant_to_spec_tool(AACContext * ac, const ics_struct * ics, const int * icoef, const int cb[][64], const float sf[][64], float * coef) {
> const uint16_t * offsets = ics->swb_offset;
> int g, i, group, k;
> - for (g = 0; g < ics->num_window_groups; g++) {
> - int total = (ics->window_sequence == EIGHT_SHORT_SEQUENCE) ? 128 : 1024;
> - memset(coef + g*total + offsets[ics->max_sfb], 0, sizeof(float)*(total - offsets[ics->max_sfb]));
> - }
> +
> + if(ics->window_sequence == EIGHT_SHORT_SEQUENCE)
> + for(g = 0; g < 8; g++)
> + memset(coef + g * 128 + offsets[ics->max_sfb], 0, sizeof(float)*(128 - offsets[ics->max_sfb]));
> + else
> + memset(coef + offsets[ics->max_sfb], 0, sizeof(float)*(1024 - offsets[ics->max_sfb]));
> +
> for (g = 0; g < ics->num_window_groups; g++) {
> for (i = 0; i < ics->max_sfb; i++) {
> if (cb[g][i] == NOISE_HCB) {
very
interrestingly
indented
code
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080112/33851c83/attachment.pgp>
More information about the FFmpeg-soc
mailing list