diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
commit | fd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch) | |
tree | 42d2a87726d196f4db1c68489007520a4c597062 /formats/format_g726.c | |
parent | 9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'formats/format_g726.c')
-rw-r--r-- | formats/format_g726.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/formats/format_g726.c b/formats/format_g726.c index 366f85d8d..bb769bc60 100644 --- a/formats/format_g726.c +++ b/formats/format_g726.c @@ -19,7 +19,7 @@ /*!\file * * \brief Headerless G.726 (16/24/32/40kbps) data format for Asterisk. - * + * * File name extensions: * \arg 40 kbps: g726-40 * \arg 32 kbps: g726-32 @@ -31,7 +31,7 @@ /*** MODULEINFO <support_level>core</support_level> ***/ - + #include "asterisk.h" #include "asterisk/mod_format.h" @@ -49,7 +49,7 @@ #define BUF_SIZE (5*FRAME_TIME) /* max frame size in bytes ? */ /* Frame sizes in bytes */ -static int frame_size[4] = { +static int frame_size[4] = { FRAME_TIME * 5, FRAME_TIME * 4, FRAME_TIME * 3, @@ -141,12 +141,12 @@ static int g726_write(struct ast_filestream *s, struct ast_frame *f) struct g726_desc *fs = (struct g726_desc *)s->_private; if (f->datalen % frame_size[fs->rate]) { - ast_log(LOG_WARNING, "Invalid data length %d, should be multiple of %d\n", + ast_log(LOG_WARNING, "Invalid data length %d, should be multiple of %d\n", f->datalen, frame_size[fs->rate]); return -1; } if ((res = fwrite(f->data.ptr, 1, f->datalen, s->f)) != f->datalen) { - ast_log(LOG_WARNING, "Bad write (%d/%d): %s\n", + ast_log(LOG_WARNING, "Bad write (%d/%d): %s\n", res, frame_size[fs->rate], strerror(errno)); return -1; } |