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

alexc subversion at mplayerhq.hu
Sat Dec 5 16:42:04 CET 2009


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;
     for (k = 1; k <= sbr->n[0]; k++)
         sbr->f_tablelow[k] = sbr->f_tablehigh[(k << 1) - temp];
 


More information about the FFmpeg-soc mailing list