[FFmpeg-devel] [PATCH 4/4] pan: reindent in config_props().

Clément Bœsch ubitux at gmail.com
Wed Jan 18 13:31:32 CET 2012


From: Clément Bœsch <clement.boesch at smartjog.com>

---
 libavfilter/af_pan.c |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index e2aa28f..7d39755 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -240,23 +240,23 @@ static int config_props(AVFilterLink *link)
             pan->ch[i] = ch_id;
         }
     } else {
-    // renormalize
-    for (i = 0; i < pan->nb_output_channels; i++) {
-        if (!((pan->need_renorm >> i) & 1))
-            continue;
-        t = 0;
-        for (j = 0; j < pan->nb_input_channels; j++)
-            t += pan->gain.d[i][j];
-        if (t > -1E-5 && t < 1E-5) {
-            // t is almost 0 but not exactly, this is probably a mistake
-            if (t)
-                av_log(ctx, AV_LOG_WARNING,
-                       "Degenerate coefficients while renormalizing\n");
-            continue;
+        // renormalize
+        for (i = 0; i < pan->nb_output_channels; i++) {
+            if (!((pan->need_renorm >> i) & 1))
+                continue;
+            t = 0;
+            for (j = 0; j < pan->nb_input_channels; j++)
+                t += pan->gain.d[i][j];
+            if (t > -1E-5 && t < 1E-5) {
+                // t is almost 0 but not exactly, this is probably a mistake
+                if (t)
+                    av_log(ctx, AV_LOG_WARNING,
+                           "Degenerate coefficients while renormalizing\n");
+                continue;
+            }
+            for (j = 0; j < pan->nb_input_channels; j++)
+                pan->gain.d[i][j] /= t;
         }
-        for (j = 0; j < pan->nb_input_channels; j++)
-            pan->gain.d[i][j] /= t;
-    }
     }
     // summary
     for (i = 0; i < pan->nb_output_channels; i++) {
-- 
1.7.8.3



More information about the ffmpeg-devel mailing list