[FFmpeg-soc] [soc]: r5496 - aac-sbr/aacsbr.c

Robert Swain robert.swain at gmail.com
Sat Dec 5 17:04:50 CET 2009


On Sat, 2009-12-05 at 16:42 +0100, alexc wrote:
> Author: alexc
> Date: Sat Dec  5 16:42:04 2009
> New Revision: 5496
> 
> Log:
> Simplify algebra/logic in f_tablelow derivation.
> 
> Modified:
>    aac-sbr/aacsbr.c
> 
> Modified: aac-sbr/aacsbr.c
> ==============================================================================
> --- aac-sbr/aacsbr.c	Sat Dec  5 15:58:01 2009	(r5495)
> +++ aac-sbr/aacsbr.c	Sat Dec  5 16:42:04 2009	(r5496)
> @@ -446,7 +446,7 @@ static int sbr_make_f_derived(AACContext
>      }
>  
>      sbr->f_tablelow[0] = sbr->f_tablehigh[0];
> -    temp = (1 - (sbr->n[1] & 1 ? -1 : 1)) >> 1;
> +    temp = sbr->n[1] & 1;

Wow. The original code there is bizarre... talk about obfuscated! :)

Regards,
Rob



More information about the FFmpeg-soc mailing list