[FFmpeg-cvslog] r20043 - trunk/libavcodec/ac3.c

jbr subversion
Sun Sep 27 06:57:36 CEST 2009


Author: jbr
Date: Sun Sep 27 06:57:36 2009
New Revision: 20043

Log:
simplify 2 lines into 1 using FFMIN

Modified:
   trunk/libavcodec/ac3.c

Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c	Sun Sep 27 06:55:37 2009	(r20042)
+++ trunk/libavcodec/ac3.c	Sun Sep 27 06:57:36 2009	(r20043)
@@ -156,8 +156,7 @@ int ff_ac3_bit_alloc_calc_mask(AC3BitAll
             }
         }
 
-        end1=bndend;
-        if (end1 > 22) end1=22;
+        end1 = FFMIN(bndend, 22);
 
         for (bin = begin; bin < end1; bin++) {
             if (!(is_lfe && bin == 6))



More information about the ffmpeg-cvslog mailing list