OSDN Git Service

audioconvert: K&R whitespace cosmetics
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 10 Sep 2011 23:06:57 +0000 (01:06 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sun, 11 Sep 2011 16:41:33 +0000 (18:41 +0200)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavutil/audioconvert.c

index fa27f01..d6a4b8a 100644 (file)
@@ -91,13 +91,14 @@ void av_get_channel_layout_string(char *buf, int buf_size,
 
     snprintf(buf, buf_size, "%d channels", nb_channels);
     if (channel_layout) {
-        int i,ch;
+        int i, ch;
         av_strlcat(buf, " (", buf_size);
-        for(i=0,ch=0; i<64; i++) {
-            if ((channel_layout & (1L<<i))) {
+        for (i = 0, ch = 0; i < 64; i++) {
+            if ((channel_layout & (1L << i))) {
                 const char *name = get_channel_name(i);
                 if (name) {
-                    if (ch>0) av_strlcat(buf, "|", buf_size);
+                    if (ch > 0)
+                        av_strlcat(buf, "|", buf_size);
                     av_strlcat(buf, name, buf_size);
                 }
                 ch++;