[FFmpeg-cvslog] audioconvert: K&R whitespace cosmetics

Stefano Sabatini git at videolan.org
Mon Sep 12 00:39:00 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sun Sep 11 01:06:57 2011 +0200| [3a0b5fa5e8f0f3eccbbe38b179ea458e98751011] | committer: Diego Biurrun

audioconvert: K&R whitespace cosmetics

Signed-off-by: Diego Biurrun <diego at biurrun.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a0b5fa5e8f0f3eccbbe38b179ea458e98751011
---

 libavutil/audioconvert.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c
index fa27f01..d6a4b8a 100644
--- a/libavutil/audioconvert.c
+++ b/libavutil/audioconvert.c
@@ -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++;



More information about the ffmpeg-cvslog mailing list