changeset 10285:4ce987b92348 libavcodec

simplify 2 lines into 1 using FFMIN
author jbr
date Sun, 27 Sep 2009 04:57:36 +0000
parents 38e05838efc0
children 2bb4b0cda61e
files ac3.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 04:55:37 2009 +0000
+++ b/ac3.c	Sun Sep 27 04:57:36 2009 +0000
@@ -156,8 +156,7 @@
             }
         }
 
-        end1=bndend;
-        if (end1 > 22) end1=22;
+        end1 = FFMIN(bndend, 22);
 
         for (bin = begin; bin < end1; bin++) {
             if (!(is_lfe && bin == 6))