[FFmpeg-soc] [soc]: r2139 - aac/aac.c

andoma subversion at mplayerhq.hu
Tue Apr 22 13:25:03 CEST 2008


Author: andoma
Date: Tue Apr 22 13:25:02 2008
New Revision: 2139

Log:
Use FFMAX() instead of an if() -construct.



Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Apr 22 13:25:02 2008
@@ -1670,9 +1670,7 @@ static void tns_filter_tool(AACContext *
         bottom = ics->num_swb;
         for (filt = 0; filt < tns->n_filt[w]; filt++) {
             top = bottom;
-            bottom = top - tns->length[w][filt];
-            if (bottom < 0)
-                bottom = 0;
+            bottom = FFMAX(0, top - tns->length[w][filt]);
             order = FFMIN(tns->order[w][filt], TNS_MAX_ORDER);
             if (order == 0)
                 continue;



More information about the FFmpeg-soc mailing list