Browse Source

audioconvert: K&R whitespace cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n0.9
Stefano Sabatini Diego Biurrun 14 years ago
parent
commit
3a0b5fa5e8
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      libavutil/audioconvert.c

+ 5
- 4
libavutil/audioconvert.c View 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++;


Loading…
Cancel
Save